Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

Hi all,

Following the previous commit that displays terminal names on contact symbols in Xref (both Contact and Cross modes), I've been working on extending the feature to power contacts and switch (SW) contacts.

Here is what has been implemented:

**Power contacts (e.g. 3-pole contactor, 6 terminals)**

Cross mode: all terminals are collected and sorted numerically → [1-2-3-4-5-6] P1-H9
Contacts mode: each pole displays its own pair:
- Pole 1 → 1 (left) / 2 (right)
- Pole 2 → 3 (left) / 4 (right)
- Pole 3 → 5 (left) / 6 (right)

**SW contacts with typed terminals**

To solve the ambiguity of SW contacts (which appear in both NO and NC columns), TerminalData::Type has been extended with three new semantic values:

  enum Type { Generic, Inner, Outer, No, Nc, Common };

Users can now assign a role to each terminal of a SW element directly in the element editor (new entries in the Type combobox: "NO (contact SW)", "NC (contact SW)", "Commun (contact SW)").

Once typed, the Xref displays the correct pair per column:
- NO column: NO + Common pair, e.g. [14-13]
- NC column: NC + Common pair, e.g. [12-13]
- Contacts mode: NO top-left, NC bottom-left, Common right

Elements without explicit terminal types fall back to the previous behavior (first 2 named terminals) — fully backward compatible.

This change affects:
- terminaldata.h / terminaldata.cpp — new enum values + serialization
- terminal.h / terminal.cpp — new public terminalType() accessor
- terminaleditor.cpp — new entries in the type combobox + pre-existing bug fix in updateForm()
- crossrefitem.cpp — filtering by type in Cross and Contacts modes

Joshua, Achim, plc-user, Kellermorph — what do you think?

https://download.qelectrotech.org/qet/forum_img_2/max_slave_contacts_box6.png
https://download.qelectrotech.org/qet/forum_img_2/max_slave_contacts_box4.png
https://download.qelectrotech.org/qet/forum_img_2/max_slave_contacts_box5.png


EDIT: Pushed to the master branch and compiled the main packages.

Post's attachments

Attachment icon 0001.patch 15.8 kb, 5 downloads since 2026-05-23 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

But I’ve discovered a reproducible crash:

However, a reproducible crash occurs in the element editor when editing static text size spinbox; clicking rapidly on the size selection spin box whilst hovering over it with the mouse wheel to quickly scroll through the drop-down list in order to rapidly decrease or increase the value causes the application to crash.

This bug was very old I can crash old: 0.9, 08, 07 appImages...


4618.563460] qelectrotech[180110]: segfault at 0 ip 00007f43d435cac0 sp 00007ffd6d6b9380 error 4 in libQt5WaylandClient.so.5.15.17[b1ac0,7f43d4310000+a8000] likely on CPU 9 (core 12, socket 0)
[54618.563475] Code: 4c 89 d6 4c 8d 2c 85 00 00 00 00 4a 8d 7c 15 00 48 29 ee 0f 1f 80 00 00 00 00 4c 89 c9 31 d2 66 66 2e 0f 1f 84 00 00 00 00 00 <0f> b6 44 16 01 45 0f b6 64 12 01 48 83 c1 04 41 c1 e4 08 c1 e0 10
[55407.159955] qelectrotech[289531]: segfault at 0 ip 00007f1ff6b5cac0 sp 00007ffe3bc56f70 error 4 in libQt5WaylandClient.so.5.15.17[b1ac0,7f1ff6b10000+a8000] likely on CPU 15 (core 20, socket 0)
[55407.159971] Code: 4c 89 d6 4c 8d 2c 85 00 00 00 00 4a 8d 7c 15 00 48 29 ee 0f 1f 80 00 00 00 00 4c 89 c9 31 d2 66 66 2e 0f 1f 84 00 00 00 00 00 <0f> b6 44 16 01 45 0f b6 64 12 01 48 83 c1 04 41 c1 e4 08 c1 e0 10
[55878.824942] qelectrotech[294763]: segfault at 0 ip 00007fdf7c317ac0 sp 00007fff4c4833c0 error 4 in libQt5WaylandClient.so.5.15.17[b1ac0,7fdf7c2cb000+a8000] likely on CPU 40 (core 21, socket 0)
[55878.824959] Code: 4c 89 d6 4c 8d 2c 85 00 00 00 00 4a 8d 7c 15 00 48 29 ee 0f 1f 80 00 00 00 00 4c 89 c9 31 d2 66 66 2e 0f 1f 84 00 00 00 00 00 <0f> b6 44 16 01 45 0f b6 64 12 01 48 83 c1 04 41 c1 e4 08 c1 e0 10
[55926.713745] qelectrotech[295041]: segfault at 0 ip 00007f36b9f5cac0 sp 00007ffe2f9c84e0 error 4 in libQt5WaylandClient.so.5.15.17[b1ac0,7f36b9f10000+a8000] likely on CPU 17 (core 22, socket 0)
[55926.713760] Code: 4c 89 d6 4c 8d 2c 85 00 00 00 00 4a 8d 7c 15 00 48 29 ee 0f 1f 80 00 00 00 00 4c 89 c9 31 d2 66 66 2e 0f 1f 84 00 00 00 00 00 <0f> b6 44 16 01 45 0f b6 64 12 01 48 83 c1 04 41 c1 e4 08 c1 e0 10
[56039.003506] qelectrotech[295419]: segfault at 0 ip 00007f391635cac0 sp 00007ffde0a72510 error 4 in libQt5WaylandClient.so.5.15.17[b1ac0,7f3916310000+a8000] likely on CPU 15 (core 20, socket 0)
[56039.003522] Code: 4c 89 d6 4c 8d 2c 85 00 00 00 00 4a 8d 7c 15 00 48 29 ee 0f 1f 80 00 00 00 00 4c 89 c9 31 d2 66 66 2e 0f 1f 84 00 00 00 00 00 <0f> b6 44 16 01 45 0f b6 64 12 01 48 83 c1 04 41 c1 e4 08 c1 e0 10
[62132.993660] qelectrotech[370775]: segfault at 0 ip 00007f473455cac0 sp 00007ffe223d3de0 error 4 in libQt5WaylandClient.so.5.15.17[b1ac0,7f4734510000+a8000] likely on CPU 16 (core 21, socket 0)
[62132.993676] Code: 4c 89 d6 4c 8d 2c 85 00 00 00 00 4a 8d 7c 15 00 48 29 ee 0f 1f 80 00 00 00 00 4c 89 c9 31 d2 66 66 2e 0f 1f 84 00 00 00 00 00 <0f> b6 44 16 01 45 0f b6 64 12 01 48 83 c1 04 41 c1 e4 08 c1 e0 10
[62177.491767] qelectrotech[370978]: segfault at 0 ip 00007f45f55e0ac0 sp 00007ffe5fcedef0 error 4 in libQt5WaylandClient.so.5.15.17[b1ac0,7f45f5594000+a8000] likely on CPU 15 (core 20, socket 0)
[62177.491782] Code: 4c 89 d6 4c 8d 2c 85 00 00 00 00 4a 8d 7c 15 00 48 29 ee 0f 1f 80 00 00 00 00 4c 89 c9 31 d2 66 66 2e 0f 1f 84 00 00 00 00 00 <0f> b6 44 16 01 45 0f b6 64 12 01 48 83 c1 04 41 c1 e4 08 c1 e0 10
[63808.277931] qelectrotech[374595]: segfault at 0 ip 00007f1538f5cac0 sp 00007ffd50716220 error 4 in libQt5WaylandClient.so.5.15.17[b1ac0,7f1538f10000+a8000] likely on CPU 15 (core 20, socket 0)
[63808.277947] Code: 4c 89 d6 4c 8d 2c 85 00 00 00 00 4a 8d 7c 15 00 48 29 ee 0f 1f 80 00 00 00 00 4c 89 c9 31 d2 66 66 2e 0f 1f 84 00 00 00 00 00 <0f> b6 44 16 01 45 0f b6 64 12 01 48 83 c1 04 41 c1 e4 08 c1 e0 10
[64010.287344] qelectrotech[376296]: segfault at 0 ip 00007f6862b5cac0 sp 00007ffe2af56ef0 error 4 in libQt5WaylandClient.so.5.15.17[b1ac0,7f6862b10000+a8000] likely on CPU 15 (core 20, socket 0)
[64010.287360] Code: 4c 89 d6 4c 8d 2c 85 00 00 00 00 4a 8d 7c 15 00 48 29 ee 0f 1f 80 00 00 00 00 4c 89 c9 31 d2 66 66 2e 0f 1f 84 00 00 00 00 00 <0f> b6 44 16 01 45 0f b6 64 12 01 48 83 c1 04 41 c1 e4 08 c1 e0 10
[64259.990010] qelectrotech[378588]: segfault at 0 ip 00007f863915cac0 sp 00007ffc45c147c0 error 4 in libQt5WaylandClient.so.5.15.17[b1ac0,7f8639110000+a8000] likely on CPU 16 (core 21, socket 0)
[64259.990028] Code: 4c 89 d6 4c 8d 2c 85 00 00 00 00 4a 8d 7c 15 00 48 29 ee 0f 1f 80 00 00 00 00 4c 89 c9 31 d2 66 66 2e 0f 1f 84 00 00 00 00 00 <0f> b6 44 16 01 45 0f b6 64 12 01 48 83 c1 04 41 c1 e4 08 c1 e0 10
[66222.289237] qelectrotech[381720]: segfault at 0 ip 00007f21cd55cac0 sp 00007ffed7756630 error 4 in libQt5WaylandClient.so.5.15.17[b1ac0,7f21cd510000+a8000] likely on CPU 15 (core 20, socket 0)
[66222.289251] Code: 4c 89 d6 4c 8d 2c 85 00 00 00 00 4a 8d 7c 15 00 48 29 ee 0f 1f 80 00 00 00 00 4c 89 c9 31 d2 66 66 2e 0f 1f 84 00 00 00 00 00 <0f> b6 44 16 01 45 0f b6 64 12 01 48 83 c1 04 41 c1 e4 08 c1 e0 10
[67221.833917] qelectrotech[384539]: segfault at 0 ip 00007fcb6e9edac0 sp 00007ffee8437890 error 4 in libQt5WaylandClient.so.5.15.17[b1ac0,7fcb6e9a1000+a8000] likely on CPU 15 (core 20, socket 0)
[67221.833932] Code: 4c 89 d6 4c 8d 2c 85 00 00 00 00 4a 8d 7c 15 00 48 29 ee 0f 1f 80 00 00 00 00 4c 89 c9 31 d2 66 66 2e 0f 1f 84 00 00 00 00 00 <0f> b6 44 16 01 45 0f b6 64 12 01 48 83 c1 04 41 c1 e4 08 c1 e0 10
[67436.543199] qelectrotech[385262]: segfault at 0 ip 00007ff13359e7b0 sp 00007ffcad687ff0 error 4 in libQt5XcbQpa.so.5[b67b0,7ff133518000+8e000] likely on CPU 15 (core 20, socket 0)
[67436.543214] Code: 8b 54 24 28 4c 29 f6 4c 01 f7 48 8d 1c 95 00 00 00 00 0f 1f 84 00 00 00 00 00 4e 8d 04 36 4c 89 d1 31 d2 85 ed 74 36 0f 1f 00 <0f> b6 44 16 01 45 0f b6 7c 10 01 48 83 c1 04 41 c1 e7 08 c1 e0 10
[67484.866151] qelectrotech[385406]: segfault at 0 ip 00007fe18ff9e7b0 sp 00007ffe0092fa20 error 4 in libQt5XcbQpa.so.5[b67b0,7fe18ff18000+8e000] likely on CPU 39 (core 20, socket 0)
[67484.866166] Code: 8b 54 24 28 4c 29 f6 4c 01 f7 48 8d 1c 95 00 00 00 00 0f 1f 84 00 00 00 00 00 4e 8d 04 36 4c 89 d1 31 d2 85 ed 74 36 0f 1f 00 <0f> b6 44 16 01 45 0f b6 7c 10 01 48 83 c1 04 41 c1 e7 08 c1 e0 10
[67556.962754] qelectrotech[385588]: segfault at 0 ip 00007f8fb2603380 sp 00007ffc187a3c50 error 4 in libQt5XcbQpa.so.5[e2380,7f8fb2559000+dc000] likely on CPU 15 (core 20, socket 0)
[67556.962768] Code: 48 89 fe 45 0f b7 f2 48 89 c3 49 c1 e6 02 4c 29 e6 4c 01 e7 66 0f 1f 44 00 00 4e 8d 0c 26 48 89 d9 31 d2 45 85 c0 74 35 66 90 <0f> b6 44 16 01 45 0f b6 6c 11 01 48 83 c1 04 41 c1 e5 08 c1 e0 10
[67656.520957] qelectrotech[385802]: segfault at 0 ip 00007f441494d380 sp 00007ffefee6f8d0 error 4 in libQt5XcbQpa.so.5[e2380,7f44148a3000+dc000] likely on CPU 6 (core 8, socket 0)
[67656.520973] Code: 48 89 fe 45 0f b7 f2 48 89 c3 49 c1 e6 02 4c 29 e6 4c 01 e7 66 0f 1f 44 00 00 4e 8d 0c 26 48 89 d9 31 d2 45 85 c0 74 35 66 90 <0f> b6 44 16 01 45 0f b6 6c 11 01 48 83 c1 04 41 c1 e5 08 c1 e0 10
[68184.980531] qelectrotech[386496]: segfault at 0 ip 00007f8e598bc398 sp 00007ffda42c0dc0 error 4 in libQt5XcbQpa.so.5[bc398,7f8e59800000+14e000] likely on CPU 15 (core 20, socket 0)
[68184.980545] Code: 95 00 00 00 00 48 89 cd 66 2e 0f 1f 84 00 00 00 00 00 49 89 fa 31 c9 4c 89 de 4d 29 f2 45 85 c0 4e 8d 0c 37 74 36 0f 1f 40 00 <41> 0f b6 44 0a 01 48 83 c6 04 c1 e0 10 89 c2 41 0f b6 44 09 01 0d
[68255.801243] qelectrotech[386764]: segfault at 0 ip 00007ff1778cec68 sp 00007fff20112550 error 4 in libQt5XcbQpa.so.5[cec68,7ff177800000+194000] likely on CPU 15 (core 20, socket 0)
[68255.801258] Code: 4d 63 ed 48 c1 e0 02 49 89 c7 0f 1f 84 00 00 00 00 00 49 89 fb 31 c9 4c 89 e6 4d 29 eb 45 85 c0 4e 8d 0c 2f 74 36 0f 1f 40 00 <41> 0f b6 44 0b 01 48 83 c6 04 c1 e0 10 89 c2 41 0f b6 44 09 01 0d

Edit : libQt5WaylandClient.so.5.15.17, libQt5XcbQpa.so.5 so only reproductible on Debian Sid?

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

253

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

Hello Laurent,
Great work—the labeled contacts in the contact mirror are a real improvement.
I just tested your patch in a simple test scenario, and it seems to work well.
I also just opened an older project, and I noticed that the labeling was incorrect for many of the contacts. However, this isn't due to the code itself, but rather to the way I originally drafted the schematics (I often only changed the visible text) and the symbols (specifically the changeover contacts) in that project haven't been updated to meet the new specifications yet. Would it perhaps make sense to add an option in the program settings to toggle the contact labeling in the contact mirror on or off? That way, users could disable the labeling specifically for older projects

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

I installed the new update that was offered to me via Discover.
I don't see the new selection of connections in the component editor. Also, for a 3-pole normally open contact, it still only shows 1 and 3, and yes, the program is now crashing more often for me in the component editor.

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

achim wrote:

Hello Laurent,
Great work—the labeled contacts in the contact mirror are a real improvement.
I just tested your patch in a simple test scenario, and it seems to work well.
I also just opened an older project, and I noticed that the labeling was incorrect for many of the contacts. However, this isn't due to the code itself, but rather to the way I originally drafted the schematics (I often only changed the visible text) and the symbols (specifically the changeover contacts) in that project haven't been updated to meet the new specifications yet. Would it perhaps make sense to add an option in the program settings to toggle the contact labeling in the contact mirror on or off? That way, users could disable the labeling specifically for older projects

Yeah, the feature is really cool overall—it makes the schematics look even more professional.
However, as you suggested, it would be great if we could disable it for older schematics until the feature is 100% reliable.

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

In older projects, the `terminal_name` tag does not exist; consequently, terminal numbers will not be displayed.
@Achim: you could share an little sample?
What you using list mode or cross for XREFs?
I use only list mode, I hate cross.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

Kellermorph wrote:

I installed the new update that was offered to me via Discover.
I don't see the new selection of connections in the component editor. Also, for a 3-pole normally open contact, it still only shows 1 and 3, and yes, the program is now crashing more often for me in the component editor.

Hello Thomas, can’t you see the new option in the editor for terminals?

As for the crashes in the element editor, I’ve noticed that I can cause the programme to crash by quickly changing the size of a static text input field using the mouse wheel. I can reproduce this even on older versions such as 0.7, 0.8, 0.9... I’ve checked on my Windows 10 virtual machine running the latest MSI installer, but I can’t reproduce this crash.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

258 (edited by Kellermorph Yesterday 13:04:32)

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

scorpio810 wrote:
Kellermorph wrote:

I installed the new update that was offered to me via Discover.
I don't see the new selection of connections in the component editor. Also, for a 3-pole normally open contact, it still only shows 1 and 3, and yes, the program is now crashing more often for me in the component editor.

Hello Thomas, can’t you see the new option in the editor for terminals?

As for the crashes in the element editor, I’ve noticed that I can cause the programme to crash by quickly changing the size of a static text input field using the mouse wheel. I can reproduce this even on older versions such as 0.7, 0.8, 0.9... I’ve checked on my Windows 10 virtual machine running the latest MSI installer, but I can’t reproduce this crash.

no, i just can see the old 3 ones

Post's attachments

Attachment icon Bildschirmfoto_20260523_130148.png 20.13 kb, 1 downloads since 2026-05-23 

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

See log and check the version git hash.
You use my PPA or snap, for snap I don't deploy it to stable channel yet.
Or you use my Debian deb repository?

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

scorpio810 wrote:

See log and check the version git hash.
You use my PPA or snap, for snap I don't deploy it to stable channel yet.
Or you use my Debian deb repository?

QElectroTech V 0.100.1-dev
Compilation: GCC 13.3.0
Built with Qt 5.15.13 - x86_64 - Date : May 22 2026 : 09:36:52
Run with Qt 5.15.13 using 16 thread(s)
CPU : model name : AMD Ryzen 7 3800X 8-Core Processor
RAM Total : 32 GB
RAM Available : 27 GB
GPU : Advanced Micro Devices, Inc. [AMD/ATI] Navi 33 [Radeon RX 7600/7600 XT/7600M XT/7600S/7700S / PRO W7600] (rev cf)
GPU RAM : Video memory: 8192MB Dedicated video memory: 8192 MB Currently available dedicated video memory: 6850 MB
OS : linux - x86_64 - Version : TUXEDO OS - Kernel : 6.17.0-118023-tuxedo
*** Qt screens ***
( 1 : 1920 x 1080 )
( 2 : 1920 x 1080 )
( 3 : 1920 x 1080 )

Log:

09:54:29.339 Info: Start-up
09:54:29.340 Debug: "File /home/toto/.local/share/QElectroTech/QElectroTech/20260515.log is deleted!" (sources/main.cpp:151, void delete_old_log_files(int))
09:54:29.538 Info: debugging enabled: false
09:54:29.538 Info: Qt library version: 5.15.13
09:54:29.538 Info: Qt library location default prefix: "/usr"
09:54:29.538 Info: Qt library location documentation: "/usr/share/qt5/doc"
09:54:29.538 Info: Qt library location headers: "/usr/include/x86_64-linux-gnu/qt5"
09:54:29.538 Info: Qt library location libraries: "/usr/lib/x86_64-linux-gnu"
09:54:29.538 Info: Qt library location executables: "/usr/lib/x86_64-linux-gnu/qt5/libexec"
09:54:29.538 Info: Qt library location Qt binaries: "/usr/lib/qt5/bin"
09:54:29.538 Info: Qt library location Qt plugins: "/usr/lib/x86_64-linux-gnu/qt5/plugins"
09:54:29.538 Info: Qt library location installed QML extensions: "/usr/lib/x86_64-linux-gnu/qt5/imports"
09:54:29.538 Info: Qt library location installed QML extensions: "/usr/lib/x86_64-linux-gnu/qt5/qml"
09:54:29.538 Info: Qt library location dependent Qt data: "/usr/lib/x86_64-linux-gnu/qt5"
09:54:29.538 Info: Qt library location independent Qt data: "/usr/share/qt5"
09:54:29.538 Info: Qt library location translation: "/usr/share/qt5/translations"
09:54:29.538 Info: Qt library location examples: "/usr/lib/x86_64-linux-gnu/qt5/examples"
09:54:29.538 Info: Qt library location Qt testcases: "/usr/tests"
09:54:29.538 Info: Qt library location Qt settings: "/etc/xdg"
09:54:29.538 Info: "QElectroTech V 0.100.1-dev"
09:54:29.538 Info: "Compilation: GCC 13.3.0"
09:54:29.538 Info: "Built with Qt 5.15.13 - x86_64 - Date : May 22 2026 : 09:36:52"
09:54:29.538 Info: "Run with Qt 5.15.13 using 16 thread(s)"
09:54:29.538 Info: "CPU : model name\t: AMD Ryzen 7 3800X 8-Core Processor\n"
09:54:29.538 Info: "RAM Total : 32 GB"
09:54:29.538 Info: "RAM Available : 23 GB"
09:54:29.538 Info: "GPU :  Advanced Micro Devices, Inc. [AMD/ATI] Navi 33 [Radeon RX 7600/7600 XT/7600M XT/7600S/7700S / PRO W7600] (rev cf)\n"
09:54:29.539 Info: "GPU RAM :     Video memory: 8192MB\n    Dedicated video memory: 8192 MB\n    Currently available dedicated video memory: 6998 MB\n"
09:54:29.539 Info: "OS : linux  - x86_64 - Version : TUXEDO OS - Kernel : 6.17.0-118023-tuxedo"
09:54:29.539 Info: 
09:54:29.539 Info:  OS System language: "de_DE"
09:54:29.539 Info:  OS System Native Country Name: "Deutschland"
09:54:29.539 Info:  OS System Native Language Name: "Deutsch"
09:54:29.539 Info: 
09:54:29.539 Info:  System language defined in QET configuration: "de"
09:54:29.539 Info:  language Path: "/usr/share/qelectrotech/lang/"
09:54:29.539 Info:  Common Elements Dir: "/usr/share/qelectrotech/elements/"
09:54:29.539 Info:  Common TitleBlock Templates Dir: "/usr/share/qelectrotech/titleblocks/"
09:54:29.539 Info:  Custom Elements Dir: "/home/toto/Gewerbe/Programme/QElectrotech/Bauteile/"
09:54:29.539 Info:  Custom TitleBlock Templates Dir: "/home/toto/Gewerbe/Programme/QElectrotech/Zeichnungsk�pfe"
09:54:29.539 Info:  Company Elements Dir: "/home/toto/.local/share/QElectroTech/QElectroTech/elements-company/"
09:54:29.539 Info:  Company TitleBlock Templates Dir: "/home/toto/.local/share/QElectroTech/QElectroTech/titleblocks-company/"
09:54:29.539 Info: 
09:54:29.539 Info:  For QET configuration-files:
09:54:29.539 Info:  App Config Location: "/home/toto/.config/QElectroTech/QElectroTech"
09:54:29.539 Info:  For data-files (user-/company-collections, titleblocks, etc.):
09:54:29.539 Info:  App Data Location: "/home/toto/.local/share/QElectroTech/QElectroTech"
09:54:29.539 Info:  Directory for project stalefiles:
09:54:29.539 Info:  Generic Data Location: "/home/toto/.local/share/stalefiles/QElectroTech/"
09:54:29.539 Info: 
09:54:29.539 Info:  Count the elements in your collections (Official-common-collection, company-collections, custom-collections):
09:54:29.564 Info:  Common Elements count: 8643 Elements
09:54:29.565 Info:  Custom Elements count: 418 Elements
09:54:29.565 Info:  Company Elements count: 0 Elements
09:54:29.566 Info: 
09:54:29.566 Info: *** Qt screens ***
09:54:29.566 Info: "( 1 : 1920 x 1080 )"
09:54:29.566 Info: "( 2 : 1920 x 1080 )"
09:54:29.566 Info: "( 3 : 1920 x 1080 )"
09:54:29.566 Info: 
09:54:29.567 Info: DISK : /run   
09:54:29.567 Info: FileSystemType: "tmpfs"
09:54:29.567 Info: SizeTotal: 3 GB
09:54:29.567 Info: AvailableSize: 3 GB
09:54:29.567 Info: DISK : /   
09:54:29.567 Info: FileSystemType: "ext4"
09:54:29.567 Info: SizeTotal: 471 GB
09:54:29.567 Info: AvailableSize: 223 GB
09:54:29.567 Info: DISK : /run/lock   
09:54:29.567 Info: FileSystemType: "tmpfs"
09:54:29.567 Info: SizeTotal: 0 GB
09:54:29.567 Info: AvailableSize: 0 GB
09:54:29.567 Info: DISK : /tmp   
09:54:29.567 Info: FileSystemType: "tmpfs"
09:54:29.567 Info: SizeTotal: 16 GB
09:54:29.567 Info: AvailableSize: 16 GB
09:54:29.567 Info: DISK : /run/qemu   
09:54:29.567 Info: FileSystemType: "tmpfs"
09:54:29.567 Info: SizeTotal: 16 GB
09:54:29.567 Info: AvailableSize: 16 GB
09:54:29.567 Info: DISK : /Daten   
09:54:29.567 Info: FileSystemType: "ext4"
09:54:29.567 Info: SizeTotal: 983 GB
09:54:29.567 Info: AvailableSize: 551 GB
09:54:29.567 Info: DISK : /boot/efi   
09:54:29.568 Info: FileSystemType: "vfat"
09:54:29.568 Info: SizeTotal: 0 GB
09:54:29.568 Info: AvailableSize: 0 GB
09:54:29.568 Info: DISK : /run/user/1000   
09:54:29.568 Info: FileSystemType: "tmpfs"
09:54:29.568 Info: SizeTotal: 3 GB
09:54:29.568 Info: AvailableSize: 3 GB
09:54:29.568 Info: DISK : /run/user/1000/doc   
09:54:29.568 Info: FileSystemType: "fuse.portal"
09:54:29.568 Info: SizeTotal: 0 GB
09:54:29.568 Info: AvailableSize: 0 GB
09:54:29.568 Info: DISK USED: /   
09:54:29.568 Info: FileSystemType: "ext4"
09:54:29.568 Info: SizeTotal: 471 GB
09:54:29.568 Info: AvailableSize: 223 GB
09:54:29.568 Info: Count All Elements in collections = 9061 Elements
09:54:29.630 Info: Elements collection reload

I use the .deb repository

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

Built with Qt 5.15.13 - x86_64 - Date : May 22 2026 : 09:36:52 so I pushed PR this night very late, build some packages and go to bed.. now I continu to packages other

QElectroTech V 0.100.1-dev
Compilation : GCC 15.2.0
Built with Qt 5.15.17 - x86_64 - Date : May 23 2026 : 00:14:25

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

262 (edited by Kellermorph Yesterday 13:33:50)

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

oh yes you are right. i Got a new Version. Now the new contacts are there. But the 3-pole normally open contact are still numbered with 1 & 3 not with 1,2,3,4,5,6

Post's attachments

Attachment icon Bildschirmfoto_20260523_133332.png 6.59 kb, 2 downloads since 2026-05-23 

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

FYI, we have now two CI/CD one for snap but in edge channel, and Windows CI/CD github action pushed by me, and we wait to signpath.io mail for valid or cancel signing job before upload Installer, Ready-to-use and MSI to https://qelectrotech.github.io/qelectro … ce-mirror/

By the way I launch my packaging script to packages Debian stable and unstable deb, make PPA Upload, after I launch macOS KVM/Qemu VM for bundle Intel dmg, Open AppImage VM and build new AppImage, I open flatpak VM and build new flatpak.

After I launch my mac Mini M2 for build dmg signed and notarised for macOS Apple silicon, after I launch my Raspery Py 5 for build AppImage for aarch64 Linux.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

Yes, it’s a lot of work, but everything is scripted and all I have to do is wait for the machine to finish compiling and packaging it; however, it takes a bit of time, and you need powerful machines that can compile QET in under 90 seconds, like my old Threadripper 3960X with 24 cores and 48 threads.  Thank you to everyone who helped me buy this workstation in 2020 through their donations.

-> Workstation build 2020
Funding for a new build machine 2019

https://download.qelectrotech.org/qet/scorpio/threadripper/3960x.jpg
https://download.qelectrotech.org/qet/scorpio/threadripper/3960x-1.jpg

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

@Kellermorph:

Post's attachments

Attachment icon thomas_test.qet 128.44 kb, 5 downloads since 2026-05-23 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

266 (edited by Kellermorph Yesterday 14:10:07)

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

yeah there it is working.
in my own project it isnt working

Post's attachments

Attachment icon Bildschirmfoto_20260523_140933.png 197.27 kb, 1 downloads since 2026-05-23 

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

Is your element a power element?
See my contactor power element.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

Additional fix pushed today: crossrefitem: fix SIGSEGV when dropping a power NC contact on the folio

A reproducible crash (SIGSEGV in QRegion::begin) occurred as soon as a power NC slave element was placed on a folio, even before linking it to a master element.

Three bugs were found and fixed in crossrefitem.cpp:

1. m_drawing (QPicture) was never reset between updateLabel() calls.
QPicture accumulates paint commands — calling qp.begin() on an existing QPicture appends to it rather than replacing its content. After several updates (load, move, hover...) the picture became corrupted and crashed on play().
Fix: reset m_drawing = QPicture() at the start of updateLabel().

2. m_drawed_contacts was only initialized to 0 in drawAsContacts(), but not in drawAsCross().
When drawing in Cross mode, fillCrossRef() called drawContact() with an uninitialized m_drawed_contacts value, producing a garbage offset. The NC contact symbol uses drawPolyline() with a sub-pixel Y coordinate (offset+2.5); with a random offset Qt generated an invalid QRegion and crashed.
This explains why NC contacts crashed but NO contacts did not: the NO symbol only uses drawLine() which is more tolerant of bad coordinates.
Fix: add m_drawed_contacts = 0 at the start of drawAsCross().

3. setUpCrossBoundingRect() used QRectF() (null rect) as the reference rect for painter.boundingRect(), which can return invalid dimensions. Additionally, height was accumulated incorrectly: united() + setHeight() doubled the height at each iteration, causing an exponentially growing bounding rect with multiple contacts.
Fix: use QRectF(0, 0, 500, 20) as reference rect and accumulate height and width independently.

Only crossrefitem.cpp was modified.

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

Post's attachments

Attachment icon thomas_test2.qet 145.25 kb, 2 downloads since 2026-05-23 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

crossrefitem: fix terminal name sorting for power contacts

The previous sort used QString::toInt() to order terminal names,
which returns 0 for any string containing a non-numeric prefix
(e.g. "R1", "R2", "L1", "L2"...). This caused undefined sort order
and incorrect pole pairing in the Xref contact mirror.

Example: a 4-pole NC power contact with terminals R1..R8 was
displaying R1/R3, R5/R7, R2/R4, R6/R8 instead of the correct
R1/R2, R3/R4, R5/R6, R7/R8.

Fix: extract the trailing numeric part of each terminal name and
compare prefixes separately. If both names share the same prefix
and both have a trailing number, sort numerically on that number;
otherwise fall back to full string comparison.

This covers all naming conventions: "1"/"2"/"3", "R1"/"R2"/"R3",
"L1"/"L2"/"L3", etc.

Applied in both drawContact() and setUpCrossBoundingRect().
https://download.qelectrotech.org/qet/forum_img_2/max_slave_contacts_box9.png


Edit : wrong pictures. nomicons/smiley-green done

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !

Re: Nouveautés de la version de développement 0.9 and 0.100.0 -0.100.1

Hi all,

Following the previous work on terminal name display in cross-references, I've added a new option to disable this feature per xref type, as Achim had recommended.

A new checkbox "Show terminal numbers in Xrefs" (Show terminal names in Xrefs) has been added to the XRef properties widget, in the main display group — so it is available in both Cross and Contacts modes.

When unchecked, terminal names are hidden in all rendering paths:
- drawContact() — Contacts mode (NO/NC/SW symbols)
- fillCrossRef() — Cross mode (NO and NC columns)
- setUpCrossBoundingRect() — Cross mode (bounding rect sizing)

The new boolean property 'showTerminalName' (default: true) is fully persisted in XML and QSettings, so existing project files are not affected (backward compatible).

Also included in the same patch series: a fix for power contact terminal pairing in Contacts mode. The previous alphanumeric sort was breaking consecutive-pair grouping for terminals named L1,L2,L3,T1,T2,T3 — pole 0 was showing L1/L2 instead of L1/T1. Terminal names are now used in declaration order from the element editor; users must declare pairs consecutively (e.g. L1,T1,L2,T2,L3,T3).

Files changed:
- sources/properties/xrefproperties.h
- sources/properties/xrefproperties.cpp
- sources/ui/xrefpropertieswidget.ui
- sources/ui/xrefpropertieswidget.cpp
- sources/qetgraphicsitem/crossrefitem.cpp

Joshua, Achim, plc-user, Kellermorph — thoughts?

Post's attachments

Attachment icon crossrefitem.patch 2.11 kb, 3 downloads since 2026-05-23 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !