26

Re: Crossreference contact at coil sideways under label

Hello Laurent,

i know that i get it with apt

apt-cache policy

work too.

A=$(git rev-list HEAD --count)
HEAD=$(($A+473))

that is very god, sadly not visible in the version menu.

What i mean, there a many different revisions from one version in the world and not all people use debian systems and very few are confident in using here system.
To easily get the version to help or to figure out where is the problem, short way over the version menu. From here i just get all my information now about qelectrotech, sadly without revision.

BTW
Deluxe example FreeCAD:
there is a button

Copy to clipboard

which adds "code"-tags, there can everyone easily post to the forum or open a new issue and add all important information (not all visible in the version menu directly) for the developer/helper in a short way.

OS: Debian GNU/Linux 11 (bullseye) (GNOME/gnome-xorg)
Word size of FreeCAD: 64-bit
Version: 0.21.0.26042
Build type: Release
Python 3.9.2, Qt 5.15.2, Coin 4.0.0, Vtk 9.0.1, OCC 7.5.1
Locale: German/Germany (de_DE)
Installed mods: 
  * DynamicData 2.46.0
  * A2plus 0.4.60k
  * ThreadProfile 1.85.0
  * freecad.gears 1.0.0
  * dodo 1.0.0
  * toSketch 1.0.1
  * Curves 0.6.8
  * Assembly4 0.50.1
  * Manipulator 1.5.0
  * parts_library
  * lattice2 1.0.0
  * sheetmetal 0.2.63
  * LCInterlocking
  * BIM 2021.12.0
  * Silk 0.1.3
  * kicadStepUpMod 10.18.8
  * fasteners 0.4.56

salute Max

Post's attachments

Bildschirmfoto von 2023-05-01 14-20-44.png, 134.18 kb, 712 x 687
Bildschirmfoto von 2023-05-01 14-20-44.png 134.18 kb, 59 downloads since 2023-05-01 

Re: Crossreference contact at coil sideways under label

Hello Max, like freeCAD look for logs, you can found it on about QET widget-> tab->logs
Or in in QET home directory

cd ~./qet /
[16:04:29] laurent@debian:~/.qet$ ls -all 
total 63468
drwxr-xr-x    6 laurent laurent     4096  1 mai   10:33  .
drwxr-xr-x+ 168 laurent laurent    36864  1 mai   15:55  ..
-rw-r--r--    1 laurent laurent    27501 23 avril 20:53  20230423.log
-rw-r--r--    1 laurent laurent     7763 24 avril 07:45  20230424.log
-rw-r--r--    1 laurent laurent    14011 25 avril 13:38  20230425.log
-rw-r--r--    1 laurent laurent    17953 26 avril 20:03  20230426.log
-rw-r--r--    1 laurent laurent     5381 27 avril 11:01  20230427.log
-rw-r--r--    1 laurent laurent   474120 28 avril 21:06  20230428.log
-rw-r--r--    1 laurent laurent   182593 30 avril 17:29  20230430.log
-rw-r--r--    1 laurent laurent    65274  1 mai   10:43  20230501.log
drwxr-xr-x    2 laurent laurent     4096  4 août   2022  binary
-rwxr-xr-x    1 laurent laurent      246  1 mai    2013  count_elements.sh
-rw-------    1 laurent laurent      168  5 mai    2018  .directory
-rwxr-xr-x    1 laurent laurent  2005432 18 juil.  2022  dxf2elmt
-rwxr--r--    1 laurent laurent   750832 23 juin   2019  DXFtoQET.1
-rwxr-xr-x    1 laurent laurent   820544  6 août   2021 'DXFtoQET (2)'
-rwxr-xr-x    1 laurent laurent 12508808 14 nov.   2016  DXFtoQET.new
-rwxr-xr-x    1 laurent laurent   729944  3 déc.   2017  DXFtoQET.test
-rwxr-xr-x    1 laurent laurent  1079216 28 févr.  2016  DXFtoQET.test2
-rwxr-xr-x    1 laurent laurent 21024304 23 févr.  2017  DXFtoQET.testnew
drwxr-xr-x   12 laurent laurent     4096 10 avril 08:00  elements
-rw-r--r--    1 laurent laurent 24793088 25 avril 13:38  elements_cache.sqlite
drwxr-xr-x    2 laurent laurent     4096 29 sept.  2018  element_texts_pattern
-rwxr-xr-x    1 laurent laurent   348872 29 déc.  11:34  QET_ElementScaler
-rw-r--r--    1 laurent laurent    13985 20 août   2019  style.css.2
-rw-r--r--    1 laurent laurent      237  4 janv. 21:47  summary.json
drwxr-xr-x    2 laurent laurent     4096 21 juin   2020  titleblocks
[16:04:47] laurent@debian:~/.qet$ 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Crossreference contact at coil sideways under label

See:
https://github.com/qelectrotech/qelectr … dialog.cpp
and
https://github.com/qelectrotech/qelectr … e_info.cpp

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Crossreference contact at coil sideways under label

I keep

A=$(git rev-list HEAD --count) \ HEAD=$(($A+473))

for incrementing Ubuntu, Debian etc dev packages. And now Windows, ApppImage, macOS packages names.

On Debian you can't use GIT dependancy in debian/control for checking (git HEAD) because is very increase QET_origin.tar.gz file by 10:
https://download.qelectrotech.org/qet/d … ectrotech/

qelectrotech_0.100.0.r7849.orig.tar.gz    2023-Apr-28 19:21:53    16.7M    application/gzip

16.7Mio --> 200Mio, that not possible, the upload to master server at Tuxfamily even with fiber is very slow...

BTW, downstream officials packagers only use release tag tarball, or patch upstream code for removing git dependency.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Crossreference contact at coil sideways under label

@Laurent

Crossreference contact at coil sideways under label

Bonjour,

Grâce à vous, j'ai trouvé la solution. = Thanks to you , i have found the solution

Regarde dans la source = Look in the source  /sources/qetgraphicsitem/crossrefitem.cpp

Règle = rule 595
void CrossRefItem::drawAsContacts(QPainter &painter)

Règle = rule 630 is now bounding_rect.adjust(-30, -4, 4, 4);

Passer à = Change to
bounding_rect.adjust(0, -4, 4, 4);

Pour déplacer l'étiquette vers la droite, utilisez - = For moving the label to right,use -
Pour déplacer l'étiquette vers la droite, utilisez + = For moving the label to right,use +

Erik

I am an industrial developer technician and born in 1960

Re: Crossreference contact at coil sideways under label

Hi Erik,

thanks for feedback. ;-)

--- sources/qetgraphicsitem/crossrefitem.cpp
+++ sources/qetgraphicsitem/crossrefitem.cpp
@@ -627,7 +627,7 @@ void CrossRefItem::drawAsContacts(QPainter &painter)
         }
     }
 
-    bounding_rect.adjust(-30, -4, 4, 4);
+    bounding_rect.adjust(0, -4, 4, 4);
     prepareGeometryChange();
     m_bounding_rect = bounding_rect;
     m_shape_path.addRect(bounding_rect);

Result:
https://download.qelectrotech.org/qet/forum_img_2/bunding_adjust_xref2.png

https://download.qelectrotech.org/qet/forum_img_2/bunding_adjust_xref3.png

Regards,
Laurent

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Crossreference contact at coil sideways under label

Please try code and compile it on your setup, and ask what you want for positionning label center?
See the wiki or here on forum how to compile QET on your OS:
https://qelectrotech.org/forum/viewforum.php?id=17

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Crossreference contact at coil sideways under label

--- sources/qetgraphicsitem/crossrefitem.cpp
+++ sources/qetgraphicsitem/crossrefitem.cpp
@@ -627,7 +627,7 @@ void CrossRefItem::drawAsContacts(QPainter &painter)
         }
     }
 
-    bounding_rect.adjust(-30, -4, 4, 4);
+    bounding_rect.adjust(-4, -4, 4, 4);
     prepareGeometryChange();
     m_bounding_rect = bounding_rect;
     m_shape_path.addRect(bounding_rect);

https://download.qelectrotech.org/qet/forum_img_2/bunding_adjust_xref4.png

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."