1

(0 replies, posted in Code)

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

2

(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

3

(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.

4

(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

6

(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/

8

(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

9

(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.

10

(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

12

(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

13

(193 replies, posted in Import DXF)

AutoCAD Sample Files from autodesk.
These sample files apply to AutoCAD 2010 and later.

https://www.autodesk.com/support/techni … jrnQ9.html

14

(0 replies, posted in Code)

EN : Video's programming


For translation from youtube
I use in firefox : Download Youtube Subtitles

Youtube
Jenny lectures : https://www.youtube.com/@JennyslecturesCSIT/playlists

And with QT
https://www.youtube.com/@VoidRealms/playlists


Erik

15

(6 replies, posted in Code)

Hello christoph,

Goto the Kde-frameworks-devel
see : https://mail.kde.org/mailman/listinfo/k … orks-devel
To post a message to all the list members, send email to kde-frameworks-devel@kde.org.

Erik

Hey Tom,

I am older than Laurent(scorpio810) and I also have health problems.

Install QtCreator

Create Project => Import project


File => Open File or Project
Edit => Find/Replace => Advanced Find => Project

Search for : thickness

/qelectrotech-source-mirror/lang/qet_en.ts
/qelectrotech-source-mirror/sources/editor/graphicspart/partdynamictextfield.cpp
/qelectrotech-source-mirror/sources/editor/styleeditor.h
/qelectrotech-source-mirror/sources/qetgraphicsitem/conductor.cpp
/qelectrotech-source-mirror/sources/qetgraphicsitem/dynamicelementtextitem.cpp
/qelectrotech-source-mirror/sources/qetgraphicsitem/elementtextitemgroup.cpp

Regards,
Erik

@rvamerongen

This is not a normal xml (plain text) svg.
I think this is a compressed svg.
That can be the problem.

18

(96 replies, posted in Scripts)

Hello plc-user,

Thanks for you program.

You are using polyline and qet elmt using polygon.

The polyline left under is not good.

elements/10_electric/10_allpole/200_fuses_protective_gears/12_magneto_thermal_circuit_breakers/
fa4213_disjoncteur_moteur_3p_n.elmt

with kind regards,
Erik

19

(96 replies, posted in Scripts)

Hello plc-user,

dis_mag_term_3f-1.elmt.svg
Missing line left under

With kind regards,
Erik

20

(96 replies, posted in Scripts)

Hello plc-user,

On these url's find you about markers in SVG

https://www.svgbasics.com/markers.html
https://www.w3.org/TR/SVG11/painting.html#MarkerElement

with kind regards,
Erik

21

(96 replies, posted in Scripts)

Hello plc-user,

I found other lessons about SVG

https://riptutorial.com/svg
SVG => rotate => text : https://riptutorial.com/svg/example/10312/rotate-text

SVG Tutorial
https://www.w3schools.com/graphics/svg_intro.asp
https://www.w3schools.com/graphics/svg_text.asp


with kind regards,
Erik

@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

Hello MAX,

The left contact is too close to second contact, move this contact.
You can move the texts.
You can also move the text at the coil.

Erik

Hello,

MAX has a dot . in his formule and not a minus -
Can that be the problem ?

MAX has :
Label cross reference
Master %F.%l%c
Slave (%F.%l%c)

And not
Label cross reference
Master %F-%l%c
Slave (%F-%l%c)

Erik

Bonjour,

Les données d'application n'existent plus dans Windows 10/11.
C'est maintenant AppData
Copiez les fichiers d'Application Data vers AppData dans la source.

Salutations,
Erik


Hello,
Application Data no longer exists in Windows 10/11.
It is now AppData
Copy the files from Application Data to AppData in the source.

regards,
Erik