1

(11 replies, posted in Code)

Différence entre #include ui_file
Difference between #include ui_file


../sources/ui/alignmenttextdialog.cpp

#include "alignmenttextdialog.h"

#include "../qetgraphicsitem/dynamicelementtextitem.h"
#include "ui_alignmenttextdialog.h"




../sources/ui/dynamicelementtextitemeditor.cpp


#include "dynamicelementtextitemeditor.h"

#include "../QPropertyUndoCommand/qpropertyundocommand.h"
#include "../diagram.h"
#include "../elementtextpattern.h"
#include "../qetgraphicsitem/dynamicelementtextitem.h"
#include "../qetgraphicsitem/element.h"
#include "../qetgraphicsitem/elementtextitemgroup.h"
#include "../ui_dynamicelementtextitemeditor.h"
#include "../undocommand/addelementtextcommand.h"
#include "../undocommand/deleteqgraphicsitemcommand.h"
#include "dynamicelementtextmodel.h"

#include <QTreeView>
#include <QUndoCommand>

2

(11 replies, posted in Code)

Comme vous ne me croyez pas, regardez ceci.
../sources/ui/alignmenttextdialog.cpp
Vous verrez alors que j'ai raison.

Vous devez supprimer ../ avant ui_



If you don't believe me, take a look here.
../sources/ui/alignmenttextdialog.cpp
You'll see that I'm right.

You need to remove ../ before ui_

3

(11 replies, posted in Code)

I'm in the process of adjusting the configuration. CONFIG and QMAKE_CXXFLAGS are changed.
Je suis en train d'ajuster la configuration. CONFIG et QMAKE_CXXFLAGS sont modifiés.

CONFIG += qt c++17 debug warn_on link_pkgconfig
QMAKE_CXXFLAGS += -std=c++17 -Wall

EN
https://gcc.gnu.org/onlinedocs/gcc/
https://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

4

(11 replies, posted in Code)

OS : Linux/GNU Debian Forky/Sid and Trixie; Qt 5 and 6; Compiler :  qmake(Qt5) qmake6(Qt6)

Use qmake6 in console

g++ -c -pipe -std=c++17 -Wall -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -DQET_ALLOW_OVERRIDE_CED_OPTION -DQET_ALLOW_OVERRIDE_CTBTD_OPTION -DQET_ALLOW_OVERRIDE_CD_OPTION -DQET_ALLOW_OVERRIDE_DD_OPTION -DQET_EXPORT_PROJECT_DB -DQAPPLICATION_CLASS=QApplication -DQT_MESSAGELOGCONTEXT -DGIT_COMMIT_SHA=\"411fb3c4dc54b6aaea00f034d6c5396de5daa474\" -DQET_LANG_PATH=/home/me/1QET093ec56/build/share/qelectrotech/lang/ -DQET_COMMON_COLLECTION_PATH=/home/me/1QET093ec56/build/share/qelectrotech/elements/ -DQET_COMMON_TBT_PATH=/home/me/1QET093ec56/build/share/qelectrotech/titleblocks/ -DQT_SVG_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I../../1QET093ec56 -I. -I../SingleApplication -I../sources/ui -I../sources/TerminalStrip/ui -I/usr/include/x86_64-linux-gnu/qt6 -I/usr/include/x86_64-linux-gnu/qt6/QtSvg -I/usr/include/x86_64-linux-gnu/qt6/QtPrintSupport -I/usr/include/KF6/KWidgetsAddons -I/usr/include/x86_64-linux-gnu/qt6/QtWidgets -I/usr/include/x86_64-linux-gnu/qt6/QtGui -I/usr/include/x86_64-linux-gnu/qt6/QtNetwork -I/usr/include/x86_64-linux-gnu/qt6/QtXml -I/usr/include/x86_64-linux-gnu/qt6/QtSql -I/usr/include/x86_64-linux-gnu/qt6/QtConcurrent -I/usr/include/KF6/KCoreAddons -I/usr/include/x86_64-linux-gnu/qt6/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt6/mkspecs/linux-g++ -o dynamicelementtextitemeditor.o ../sources/ui/dynamicelementtextitemeditor.cpp
../sources/ui/dynamicelementtextitemeditor.cpp:26:10: fatal error: ../ui_dynamicelementtextitemeditor.h: No such file or directory
   26 | #include "../ui_dynamicelementtextitemeditor.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:6893: dynamicelementtextitemeditor.o] Error 1
make: *** Waiting for unfinished jobs....

5

(11 replies, posted in Code)

I also found this
J'ai également trouvé ceci


../sources/colorbutton.cpp: In member function ‘void ColorButton::clicked(bool)’:
../sources/colorbutton.cpp:56:32: warning: unused parameter ‘checked’ [-Wunused-parameter]
   56 | void ColorButton::clicked(bool checked)
      |                           ~~~~~^~~~~~~


../sources/colorcombobox.cpp: In member function ‘virtual void ColorComboBox::paintEvent(QPaintEvent*)’:
../sources/colorcombobox.cpp:80:45: warning: unused parameter ‘e’ [-Wunused-parameter]
   80 | void ColorComboBox::paintEvent(QPaintEvent *e) {
      |                                ~~~~~~~~~~~~~^


../sources/editor/UndoCommand/openelmtcommand.cpp: In member function ‘virtual void OpenElmtCommand::redo()’:
../sources/editor/UndoCommand/openelmtcommand.cpp:66:102: note: ‘#pragma message: @TODO uncommante slot_select when fixed, see itemChange function for each primitive’
   66 | #pragma message("@TODO uncommante slot_select when fixed, see itemChange function for each primitive")
      |                                                                                                      ^

6

(11 replies, posted in Code)

The include ui_ files are generated files.


QET_changes-files

../ui_ TO ui

../sources/ui/

dynamicelementtextitemeditor.cpp   
line 26 MUST BE #include "ui_dynamicelementtextitemeditor.h"
elementinfowidget.cpp
Line 24 MUST BE #include "ui_elementinfowidget.h"
imagepropertieswidget.cpp
Line 23 MUST BE #include "ui_imagepropertieswidget.h"
inditextpropertieswidget.cpp
Line 24 MUST BE #include "ui_inditextpropertieswidget.h"
linksingleelementwidget.cpp
Line 28 MUST BE #include "ui_linksingleelementwidget.h"
multipastedialog.cpp
Line 27 MUST BE #include "ui_multipastedialog.h"
potentialselectordialog.cpp
Line 28 MUST BE #include "ui_potentialselectordialog.h"
shapegraphicsitempropertieswidgetcpp
Line 24 MUST BE #include "ui_shapegraphicsitempropertieswidget.h"

7

(11 replies, posted in Code)

@Laurent (scorpio810)

erreur de frappe trouvée dans les fichiers

../sources/ui/dynamicelementtextitemeditor.cpp
26 = #include "../ui_dynamicelementtextitemeditor.h"

_  devrait être  /
26 = #include "../ui/dynamicelementtextitemeditor.h"

../sources/ui/elementinfowidget.cpp
24  #include "../ui_elementinfowidget.h"

_ devrait être  /
24  #include "../ui/elementinfowidget.h"

8

(132 replies, posted in Code)

@Laurent
Toutes mes condoléances pour la perte de votre chien.
Je comprends très bien ce que vous vivez.
Mon frère et moi n'avons pas d'enfants. Mon frère a des poneys (petits chevaux). Deux d'entre eux sont morts à cause d'une attaque de loups. J'allais voir ces poneys (petits chevaux) tous les jours. Je n'arrive toujours pas à comprendre que ces loups soient protégés par l'Europe.


CPU : model name : Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz

make -j2

real    37m45.343s
user    70m25.357s
sys    4m10.749s

9

(132 replies, posted in Code)

../sources/colorbutton.cpp: In member function ‘void ColorButton::clicked(bool)’:
../sources/colorbutton.cpp:56:32: warning: unused parameter ‘checked’ [-Wunused-parameter]
   56 | void ColorButton::clicked(bool checked)
      |                           ~~~~~^~~~~~~



../sources/colorcombobox.cpp: In member function ‘virtual void ColorComboBox::paintEvent(QPaintEvent*)’:
../sources/colorcombobox.cpp:80:45: warning: unused parameter ‘e’ [-Wunused-parameter]
   80 | void ColorComboBox::paintEvent(QPaintEvent *e) {
      |                                ~~~~~~~~~~~~~^


../sources/editor/UndoCommand/openelmtcommand.cpp: In member function ‘virtual void OpenElmtCommand::redo()’:
../sources/editor/UndoCommand/openelmtcommand.cpp:66:102: note: ‘#pragma message: @TODO uncommante slot_select when fixed, see itemChange function for each primitive’
   66 | #pragma message("@TODO uncommante slot_select when fixed, see itemChange function for each primitive")
      |                                                                                                      ^

10

(132 replies, posted in Code)

Debian 13 = Trixie
GCC = 14.2.0
Qt = 6.8.2+dfsg
Kernel : 6.12.48+deb13-amd64


avec cmake = erreur de compilation
avec qmake6 = compilation

with cmake = build error
with qmake6 = build


QElectroTech V 0.100.0-dev
Compilation : GCC 14.2.0
Built with Qt 6.8.2 - x86_64 - Date : Sep 28 2025 : 16:08:57
Git Revision : 411fb3c4dc54b6aaea00f034d6c5396de5daa474
Run with Qt 6.8.2 using 2 thread(s)
CPU : model name : Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz
RAM Total : 3 GB
RAM Available : 2 GB
GPU : Advanced Micro Devices, Inc. [AMD/ATI] RV635/M86 [Mobility Radeon HD 3650]
GPU RAM : Video memory: 256MB Dedicated video memory: 256 MB Currently available dedicated video memory: 255 MB
OS : linux - x86_64 - Version : Debian GNU/Linux 13 (trixie) - Kernel : 6.12.48+deb13-amd64
*** Qt screens ***
( 1 : 1680 x 1050 )

11

(132 replies, posted in Code)

Y a-t-il actuellement des personnes qui travaillent à la programmation de Qt5 vers Qt6 ?
Are there people currently working on programming Qt5 to Qt6?
Zijn er personen die nu bezig zijn met het programmeren van Qt5 naar Qt6 ?


Où puis-je trouver les nouveaux fichiers pour Qt6 ?
Where can I find the new files for Qt6?
Waar kan ik de nieuwe bestanden vinden voor Qt6 ?

12

(132 replies, posted in Code)

@scorpio810

Merci pour l'information.
Thanks for the information.

13

(132 replies, posted in Code)

Compiling error with Qt version 6.8.2 and qmake6 version 3.1
gcc (Debian 14.2.0-19) 14.2.0

In file included from ../sources/diagram.h:28,
                 from ../sources/conductorautonumerotation.cpp:23:
../sources/qgimanager.h:52:14: error: ‘void QGIManager::manage(QVector<QGraphicsItem*>&)’ cannot be overloaded with ‘void QGIManager::manage(const QList<QGraphicsItem*>&)’
   52 |         void manage(const QVector<QGraphicsItem *> &items);
      |              ^~~~~~
../sources/qgimanager.h:49:22: note: previous declaration ‘void QGIManager::manage(const QList<QGraphicsItem*>&)’
   49 |                 void manage(const QList<QGraphicsItem *> &);
      |                      ^~~~~~
../sources/qgimanager.h:53:14: error: ‘void QGIManager::release(QVector<QGraphicsItem*>&)’ cannot be overloaded with ‘void QGIManager::release(const QList<QGraphicsItem*>&)’
   53 |         void release(const QVector<QGraphicsItem *> &items);
      |              ^~~~~~~
../sources/qgimanager.h:51:22: note: previous declaration ‘void QGIManager::release(const QList<QGraphicsItem*>&)’
   51 |                 void release(const QList<QGraphicsItem *> &);
      |                      ^~~~~~~
In file included from ../sources/diagram.h:28,
                 from ../sources/bordertitleblock.cpp:21:
../sources/qgimanager.h:52:14: error: ‘void QGIManager::manage(QVector<QGraphicsItem*>&)’ cannot be overloaded with ‘void QGIManager::manage(const QList<QGraphicsItem*>&)’
   52 |         void manage(const QVector<QGraphicsItem *> &items);
      |              ^~~~~~
../sources/qgimanager.h:49:22: note: previous declaration ‘void QGIManager::manage(const QList<QGraphicsItem*>&)’
   49 |                 void manage(const QList<QGraphicsItem *> &);
      |                      ^~~~~~
../sources/qgimanager.h:53:14: error: ‘void QGIManager::release(QVector<QGraphicsItem*>&)’ cannot be overloaded with ‘void QGIManager::release(const QList<QGraphicsItem*>&)’
   53 |         void release(const QVector<QGraphicsItem *> &items);
      |              ^~~~~~~
../sources/qgimanager.h:51:22: note: previous declaration ‘void QGIManager::release(const QList<QGraphicsItem*>&)’
   51 |                 void release(const QList<QGraphicsItem *> &);
      |                      ^~~~~~~
make[1]: *** [Makefile.Release:4491: release/bordertitleblock.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile.Release:4536: release/conductorautonumerotation.o] Error 1

make: *** [Makefile:42: release] Error 2

14

(0 replies, posted in Code)

By compiling the source code are several warnings in the code.

15

(23 replies, posted in Code)

@plc-user

Ik weet wat het probleem is.U gebruikt het programma in de duitse taal.
Het programma is geschreven in de franse en engelse taal.
Het wordt eens tijd dat U het prograam analyseerd.
Ik heb mijn programma in de engelse taal staan.

Borne = Terminal = Anschluss

U hebt het program QET_ElementScaler zelf in de engelse taal staan.

In de documentation van QPen Class | Qt GUI 5.15.18 = https://doc.qt.io/qt-5/qpen.html
staat het volgende geschreven :

QPainter painter(this);
QPen pen(Qt::green, 3, Qt::DashDotLine, Qt::RoundCap, Qt::RoundJoin);
painter.setPen(pen);

Men is niet verplicht om pen te gebuiken in Qpen

U zegt dat ik verkeerd met de verklaring over QPen!
U hebt zelfs mijn kleine program niet getest , dan maar zeggen dat ik onkelijk heb.
Als U het getest hebt dan weet U dat ik gelijk heb.
Ik heb het eerst getest met QPen pen te gebruiken,maar op het scherm was het slecht.
Ik gebruik point voor het printen van de points op het scherm.
Maar als ik QPen point gebruik dan klopt mijn verklaring.

QPen point(Qt::black, 1);
p -> setPen(point);

Ik kan ook 1.0 gebruiken in de code.

Xavier de opricher van het programma gebruikt QPen t ; dit is t voor terminal
De breedte is 1.0
Hij is begonnen met 0.1 versie.Men vindt dat hier ook terug en ook in de laatste versie 0.100

In versie 0.100 op lijn 84 = QPen t; en breedte = 1.0
//sources/editor/graphicspart/partterminal.cpp


Je connais le problème : vous utilisez le programme en allemand.
Le programme est écrit en français et en anglais.
Il est temps d'analyser le programme.
J'ai mon programme en anglais.

Borne = Terminal = Anschluss

Vous avez le programme QET_ElementScaler lui-même en anglais.

Dans la documentation de QPen Class | Qt GUI 5.15.18 = https://doc.qt.io/qt-5/qpen.html
il est écrit ce qui suit :

QPainter painter(this) ;
QPen pen(Qt::green, 3, Qt::DashDotLine, Qt::RoundCap, Qt::RoundJoin) ;
painter.setPen(pen) ;

Il n'est pas nécessaire d'utiliser le stylo dans Qpen

Vous dites que j'ai tort avec l'affirmation sur QPen !
Vous n'avez même pas testé mon petit programme et vous vous contentez de dire que je suis inconnaissable.
Si vous l'avez testé, vous savez que j'ai raison.
Je l'ai d'abord testé en utilisant le stylo QPen, mais l'affichage à l'écran était mauvais.
J'utilise le point pour imprimer les points sur l'écran.
Mais si j'utilise QPen point, ma déclaration est correcte.

QPen point(Qt::black, 1) ;
p -> setPen(point) ;

Je peux aussi utiliser 1.0 dans le code.

Xavier, l'auteur du programme, utilise QPen t ; il s'agit de t pour terminal.
La largeur est de 1.0
Il a commencé avec la version 0.1. On retrouve cela ici et aussi dans la dernière version 0.100

Dans la version 0.100 à la ligne 84 = QPen t ; et largeur = 1.0
//sources/editor/graphicspart/partterminal.cpp

16

(23 replies, posted in Code)

@ plc-user

Diagram.cpp
Dit is mijn geboorte taal.
U begrijpt het nog altijd niet.
U vergelijkt appelen met peren.
Ik heb U ook verteld gehad dat bij mij het cijfer 1 overeenkomt met de terminal en conductor breedte.Bij U is dat niet zo.
Als ik het cijfer 2 gebruikt dat is dat veel te groot.Daarom heb ik niet andere waarden nodig.
Ik heb ook geen visuele verandering van de punten op het scherm bij het verkeinen en uitvergroten (zomen)

QPen pen en QPen point is niet hetzelfde.Wanneer wilt U dat eens begrijpen.


elementview.cpp
Dit moet nog veranderd worden. zoals in de Diagram.cpp

U sprak ook over een UHD monitor.
Op dit moment heb ik geen UHD monitor.
Heb een 16:10 ; 1680x1050 als maximum pixels = WSXGA+
Textformaat 9 is veel te klijn om te gebruiken in deze resolutie.
Textformaat 9 komt uit de tijd van het 4:3 1024x768 = XGA en nog eerder.
Voor te testen van QET gebruik ik 16:10 1280x800 = WXGA

Heb nog geen tekenig gemaakt in QET.Ik gebruik Eplan Education daarvoor.

Ben van plan om een fork van QET te maken.




Diagramme.cpp
C'est ma langue maternelle.
Vous ne la comprenez toujours pas.
Vous comparez des pommes à des oranges.
Je vous ai également dit que pour moi, le chiffre 1 correspond à la largeur du point de connexion et du conducteur, ce qui n'est pas le cas pour vous.
Si j'utilise le chiffre 2, qui est beaucoup trop grand, je n'ai pas besoin de valeurs différentes.
Je n'ai pas non plus de changement visuel des points à l'écran lors du redimensionnement et de l'agrandissement.

QPen pen et QPen point ne sont pas la même chose.


elementview.cpp
Ceci doit encore être ajusté, comme dans le fichier Diagram.cpp.

Vous avez également mentionné un moniteur UHD.
Pour l'instant, je n'ai pas de moniteur UHD.
J'ai un écran 16:10 ; 1680x1050 pixels maximum = WSXGA+.
Le format de texte 9 est beaucoup trop restrictif pour être utilisé dans cette résolution.
Le format de texte 9 remonte à l'époque du 4:3 1024x768 = XGA et même avant.
Pour tester QET, j'utilise 16:10 1280x800 = WXGA.

Je n'ai pas encore créé de schematic dans QET, j'utilise pour cela Eplan Education.

J'ai l'intention de faire un fork de QET.

17

(23 replies, posted in Code)

Problem with uploading image.

Warning! The following errors must be corrected before your message can be posted:

    The server was unable to save the uploaded file. Please contact the forum administrator at scorpio@qelectrotech.org.


@plc-user

U weigert gewoon om iemand anders zijn code te gebruiken.
You simply refuse to use anyone else's code.
Vous refusez tout simplement d'utiliser le code de quelqu'un d'autre.



I 'am using the number 1 in my version
Warning! The following errors must be corrected before your message can be posted:

    The server was unable to save the uploaded file. Please contact the forum administrator at scorpio@qelectrotech.org.



U weigert gewoon om iemand anders zijn code te gebruiken.
You simply refuse to use anyone else's code.
Vous refusez tout simplement d'utiliser le code de quelqu'un d'autre.


test my code

I 'am using the number 1 in my version
The same size as the conductor and terminal
I haven non optical artifacts in the zoom-factor.

FR
Vous devez utiliser une police générale pour trois systèmes.
Linux/GNU , MacOS, Windows

Vous pouvez également inclure le fichier de police dans le répertoire QET.
D'autres programmes de dessin font de même.
comme arial.ttf


EN
You must use a general font for three systems.
Linux/GNU , MacOS, Windows

You can also include the font file in the QET directory.
Other drawing programs do the same.
like arial.ttf

19

(23 replies, posted in Code)

I 'am using the number 1 in my version

The same size as the conductor and terminal

I haven non optical artifacts in the zoom-factor.

Now with blue points.

FR

vadoola utilise arial dans son dxf2elmt

Pour Linux/GNU Debian, vous pouvez ajouter le fichier de police windows.
Vous devez ajouter contrib à votre /etc/apt sources.list et vous verrez ttf-mscorefonts-installer 3.8.1
et installé dans /usr/share/fonts/truetype/msttcorefonts/


Pour Linux/GNU Ubuntu
https://idroot.us/install-microsoft-fonts-ubuntu-24-04/
https://linuxcapable.com/how-to-install … ntu-linux/



EN

vadoola use arial in his dxf2elmt

For Linux/GNU Debian can you add the windows font file.
You must add contrib in your /etc/apt sources.list and you see ttf-mscorefonts-installer 3.8.1
and installed in /usr/share/fonts/truetype/msttcorefonts/


For Linux/GNU Ubuntu
https://idroot.us/install-microsoft-fonts-ubuntu-24-04/
https://linuxcapable.com/how-to-install … ntu-linux/

21

(23 replies, posted in Code)

@plc-user

I always use the latest code

In the diagram editor
When zooming in, U points become larger.
When zooming out, U points become smaller.
see picture

This is not in my code
The points are same when zooming in and out

22

(23 replies, posted in Code)

@plc-user

Your changed code does NOT WORK

I am using here Linux/GNU Debian Trixie.

When i change 1 to 5 in my code have I non optical artifacts in the zoom-factor.

23

(23 replies, posted in Code)

@plc-user

Your changed code does NOT WORK

Hello,

I have found the solution,but not for the program settings.

See Code Topic: Bigger grid dots

25

(23 replies, posted in Code)

Hello,

Bigger grid dots

I have see that my backgroud of the screen is an raster.
I have found the solution for making the dots bigger in the grid raster.

I noticed that my screen background is a grid.
I found the solution to make the dots in the grid larger.

The file Diagram.cpp is located in /qelectrotech-source-mirror/sources/
The file elementview.cpp is located in /qelectrotech-source-mirror/sources/editor

My directory(folder) is different in the patch file

Erik