Hallo QET-Entwickler!
(English version follows)
Unabhängig von der letzten Änderung bezüglich der font-family haben wir eine Herausforderung!
In den vorhandenen Elementen wird von Qt5 die Schriftart-Information so gespeichert:
font="Liberation Sans,5,-1,5,50,0,0,0,0,0,Regular"
Wenn diese Element-Datei von der Qt6-Version von QElectroTech geöffnet und wieder gespeichert wird, wird die Schriftart-Information wie folgt gespeichert:
font="Liberation Sans,5,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular"
So weit so gut:
Die Schrift wird richtig in das neue Format übersetzt!
Sollte die Projekt- oder Element-Datei, die mit Qt6 gespeichert wurde, mit einer Qt5-Version geöffnet werden, werden die verwendeten Schriftarten nicht erkannt und daher ALLE Schriftarten auf einen Qt6-Standart "Sans Serif" und die Standart-Größe "9" gesetzt!
Dies zerstört im Zweifel also das gute Aussehen der Elemente, die mit der Qt6-Version von QET erstellt bzw. gespeichert wurden!
Wir müssen die Benutzer also darauf hinweisen, daß es keinen (einfachen) Weg gibt, die Projektdateien und die Elemente, die einmal mit der Qt6-Version gespeichert wurden, wieder mit älteren QET-Versionen zu öffnen!
Gruß
plc-user
Englsh translation:
Hello QET-developers!
Regardless of the latest change about the font family, we have a challenge!
In existing projects and elements, Qt5 stores the font information as follows:
font="Liberation Sans,5,-1,5,50,0,0,0,0,0,Regular"
When this element file is opened and saved again by a Qt6 version of QElectroTech, the font information is stored as follows:
font="Liberation Sans,5,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular"
So far, so good:
The font is correctly converted to the new format!
However, if the project or element file saved with Qt6 is opened with a Qt5 version, the real fonts are not recognised and ALL fonts are set to the Qt standard ‘Sans Serif’ and the standard size ‘9’!
This may/will destroy the good appearance of the elements created/saved with the Qt6 version of QET!
We must therefore point out to users that there is no (easy) way to open project files and elements that were once saved with the Qt6 version using older QET versions!
Best regards
plc-user
Fragen zu QET gehören in dieses Forum und werden nicht per PM beantwortet! – 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 !