You need to get qtcreator program here:
https://www.qt.io/offline-installers

Qt Creator
Qt Creator 10.0.2 is released and it is available via Qt online installer. If you need a standalone installer, please select the file according to your operating system from the list below to get the latest Qt Creator for your computer.

Qt Creator 10.0.2 for Windows 64-bit (273 MB)    (info)
Qt Creator 10.0.2 for Linux 64-bit (192 MB)    (info)
Qt Creator 10.0.2 for macOS (250 MB)    (info)


After just click on qet_zh.ts to open qtlinguist program for translation.
https://doc.qt.io/qt-5/linguist-translators.html

Date :    12/01/2022 13:18


> > Good morning Stephan,
> >
> > you are welcome.
> >
> > get
> > https://github.com/qelectrotech/qelectr … rce-mirror
> > or
> > git clone https://github.com/qelectrotech/qelectr … mirror.git
> >
> > Chinese country iso is CN or CHN?
> > Then I could create the qet_ts_cnh translation skeleton in the sources.
> >
> > On lang folder open qet_tr.ts with qtcreator on Windows/Linux/macOS,
> > translate, save and publish to upgrade qet_CHN.qm binary files. Send
> > me these 2 file or make a PR on Github.
> >
> > As the strings to translate are in French in the code, you can use the
> > English translation in the same windows to translate into Chinese.
> >
> > https://qelectrotech.org/wiki_new/doc/t … raductions
> >
> > https://download.qt.io/official_release … 14/4.14.1/
> > https://doc.qt.io/qt-5/linguist-translators.html
> > https://doc.qt.io/archives/qt-4.8/lingu … ators.html
> >
> > Some informations here for sync your Github mirror
> > https://qelectrotech.org/forum/viewtopi … 739#p13739
> >
> > If you have any questions do not hesitate to ask us.
> >
> >
> > Best regards,
> > Laurent
>
> Dear Stephan,
>
> I add new cn ts file to master git
> https://git.tuxfamily.org/qet/qet.git/c … dd472e3a7d
>
> Wait one clock to have this update on Github mirror.
>
> Greetings,
> Laurent

is zh-cn iso code, if yes I added file qet_zh-cn.ts in sources file, ready to translate it?

https://qelectrotech.org/forum/viewtopi … 701#p15701

regards,
Laurent

Get GIT sources

git clone git://git.tuxfamily.org/gitroot/qet/qet.git qet_git

https://qelectrotech.org/wiki_new/doc/t … urce_files

How to update .ts files from source files?
Note: *.ts are generally updated by the developer when he considers that the character strings to be translated are viable or by translators.

Édit qelectrotech.pro file: Comment out the lines starting with TRANSLATIONS += :

sed -i 's/^TRANSLATIONS/#TRANSLATIONS/g' qelectrotech.pro

Run the following command:

lupdate -noobsolete qelectrotech.pro -ts lang/qet_{en,es,ru,pt,cs,pl,ca,de,ro,it,ar,sl,hr,el,nl,be,sl,zh,hu,pt_br,da,sr,fr,tr,sk,nb,mn,ja,cn,uk,zh-cn}.ts

Restore file qelectrotech.pro:

sed -i 's/^#TRANSLATIONS/TRANSLATIONS/g' qelectrotech.pro

http://doc.qt.io/qt-5/linguist-translators.html

Hello Ahsan,

you are welcome, what country you want to add?

Best regards,
Laurent

https://qelectrotech.org/forum/viewtopi … 126#p16126
https://qelectrotech.org/wiki_new/doc/translation


Code change after new country added and translation started or finished (see *.ts and *.qm file)
https://git.tuxfamily.org/qet/qet.git/c … 9806e62ba8
https://git.tuxfamily.org/qet/qet.git/c … 7097598363

https://qelectrotech.org/forum/viewtopi … 294#p18294

https://qelectrotech.org/forum/viewtopi … 338#p18338

BTW, sometimes element is so complex for drawning, you could use DXF to elmt converter:

Hello Hamish,

https://qelectrotech.org/wiki_new/roadmap
But Joshua work when he have free time on new terminal block generator:
https://qelectrotech.org/forum/viewtopic.php?id=1486
instead off qet_tb_terminal python plugin:
https://qelectrotech.org/forum/viewtopi … 070#p17070

https://git.tuxfamily.org/qet/qet.git/l … 1_en_60617
Le dossier EN 60617 contient 912 éléments, réparties dans 129 dossiers.

Chemin de la collection :  common://10_electric/91_en_60617

For mirrored or resize elements see this topic:
https://qelectrotech.org/forum/viewtopic.php?id=1946

https://qelectrotech.org/forum/viewtopi … 925#p12925
https://qelectrotech.org/forum/viewtopi … 817#p14817

Hi Hamish,
thanks and welcome.

For the moment the name of terminal added in an element with the element editor is not yet linked to the QET engine, but we can find the uuid and the name of the terminal in the XML of the project by opening your project .qet, it must be possible with a Python script to create a table that lists the wires and the elements connected to this wire as well as the name of the terminal by uuid.

Best,
Laurent

Regarde sur cet exemple:
https://download.qelectrotech.org/qet/s … pdf#page=3
https://download.qelectrotech.org/qet/s … df#page=21

Update Qt to 5.15.10 and kf5 to 106.0:

23:01:04.374 Info: Elements collection finished to be loaded 
23:03:59.072 Info: Start-up 
23:03:59.081 Info: debugging enabled: false 
23:03:59.081 Info: Qt library version: 5.15.10 
23:03:59.082 Info: Qt library location default prefix: "/Applications/qelectrotech.app/Contents" 
23:03:59.082 Info: Qt library location documentation: "/Applications/qelectrotech.app/Contents/doc" 
23:03:59.082 Info: Qt library location headers: "/Applications/qelectrotech.app/Contents/include" 
23:03:59.082 Info: Qt library location libraries: "/Applications/qelectrotech.app/Contents/lib" 
23:03:59.082 Info: Qt library location executables: "/Applications/qelectrotech.app/Contents/libexec" 
23:03:59.082 Info: Qt library location Qt binaries: "/Applications/qelectrotech.app/Contents/bin" 
23:03:59.082 Info: Qt library location Qt plugins: "/Applications/qelectrotech.app/Contents/PlugIns" 
23:03:59.082 Info: Qt library location installed QML extensions: "/Applications/qelectrotech.app/Contents/Resources/qml" 
23:03:59.082 Info: Qt library location installed QML extensions: "/Applications/qelectrotech.app/Contents/Resources/qml" 
23:03:59.082 Info: Qt library location dependent Qt data: "/Applications/qelectrotech.app/Contents" 
23:03:59.082 Info: Qt library location independent Qt data: "/Applications/qelectrotech.app/Contents" 
23:03:59.082 Info: Qt library location translation: "/Applications/qelectrotech.app/Contents/translations" 
23:03:59.082 Info: Qt library location examples: "/Applications/qelectrotech.app/Contents/examples" 
23:03:59.082 Info: Qt library location Qt testcases: "/Applications/qelectrotech.app/Contents/tests" 
23:03:59.082 Info: Qt library location Qt settings: "/Applications/qelectrotech.app/Contents" 
23:03:59.082 Info: "GitRevision 08e8409ce061684030657518c2d723f3e02d80c6" 
23:03:59.082 Info: "QElectroTech V 0.100.0-dev" 
23:03:59.082 Info: "Compilation : CLANG 14.0.3 (clang-1403.0.22.14.1)" 
23:03:59.082 Info: "Built with Qt 5.15.10 - arm64 - Date : Jun 12 2023 : 19:59:57" 
23:03:59.082 Info: "Run with Qt 5.15.10 using 8 thread(s)" 
23:03:59.082 Info: "CPU : Apple M2\n" 
23:03:59.082 Info: "RAM Total : 8 GB" 
23:03:59.082 Info: "" 
23:03:59.083 Info: "GPU : " 
23:03:59.083 Info: "GPU RAM : " 
23:03:59.083 Info: "OS : darwin  - arm64 - Version : macOS 13.4 - Kernel : 22.5.0" 
23:03:59.083 Info: *** Qt screens *** 
23:03:59.083 Info: "( 1 : 3840 x 2160 )" 
23:03:59.083 Debug: isReadOnly: true (sources/machine_info.cpp:161, void MachineInfo::send_info_to_debug())
23:03:59.083 Info: DISK : /   
23:03:59.083 Info: FileSystemType: "apfs" 
23:03:59.083 Info: SizeTotal: 245 GB 
23:03:59.083 Info: AvailableSize: 90 GB 
23:03:59.083 Debug: isReadOnly: true (sources/machine_info.cpp:172, void MachineInfo::send_info_to_debug())
23:03:59.083 Info: DISK USED: /   
23:03:59.083 Info: FileSystemType: "apfs" 
23:03:59.083 Info: SizeTotal: 245 GB 
23:03:59.083 Info: AvailableSize: 90 GB 
23:03:59.286 Info: Elements collection reload 
23:04:00.035 Info: Elements collection finished to be loaded in 0.748 seconds 
 bash ./count_elements.sh 
8288 elements dans     1092 categories (soit 9380 fichiers)

Elements collection finished to be loaded in 0.748 seconds (8288 elements dans 1092 categories (soit 9380 fichiers))


laurent@mini-de-laurent ~ % otool -L /Applications/qelectrotech.app/Contents/MacOS/qelectrotech    
/Applications/qelectrotech.app/Contents/MacOS/qelectrotech:
    @executable_path/../Frameworks/libsqlite3.0.dylib (compatibility version 9.0.0, current version 9.6.0)
    @executable_path/../Frameworks/QtSvg.framework/Versions/5/QtSvg (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/QtPrintSupport.framework/Versions/5/QtPrintSupport (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/libKF5WidgetsAddons.5.dylib (compatibility version 5.0.0, current version 5.106.0)
    @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui (compatibility version 5.15.0, current version 5.15.10)
    /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 2299.50.120)
    /System/Library/Frameworks/Metal.framework/Versions/A/Metal (compatibility version 1.0.0, current version 306.5.16)
    @executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/QtXml.framework/Versions/5/QtXml (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/QtSql.framework/Versions/5/QtSql (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/QtConcurrent.framework/Versions/5/QtConcurrent (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/libKF5CoreAddons.5.dylib (compatibility version 5.0.0, current version 5.106.0)
    @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore (compatibility version 5.15.0, current version 5.15.10)
    /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
    /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1500.65.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.100.3)

Hi Fabian,

without your project I don't know, maybe increase tittleblock?

Ahh, ok I see, thanks for your feedback.

Hallo Fabian,


yes!

Beste Grüße
Laurent

Hi,
What your OS and QET version?

Sometimes it's a GPU driver's problem...

I 'm thinking your XML is wrong, see this example:
https://stackoverflow.com/questions/444 … s-of-a-dir
See picture of tree, and the XML output.

Hi,

see :
https://qelectrotech.org/forum/viewtopi … 152#p16152
https://qelectrotech.org/forum/viewtopi … 198#p17198

scorpio810 wrote:

En effet c'est pourquoi j'ai abandonné l'idée de mettre la variable total dans mon denier projet.
Mais je suis libre d'ajouter et d’insérer autant de folios que je souhaite ...  sans casser et chambouler les XREFs de mes renvois, maîtres/ esclaves qui resterons justes, puisque le projet n'en ai qu'a ces débuts.

A la limite %id/%total  a du sens sur la page de garde (premier folio).

Hi,

see example file here:
https://git.tuxfamily.org/qet/qet.git/t … labels.xml

~ % tree qet_git/elements/10_electric/11_singlepole/200_fuses_protective_gears
qet_git/elements/10_electric/11_singlepole/200_fuses_protective_gears
├── 10_fuses
│   ├── fusible.elmt
│   ├── qet_directory
│   └── sec_fus1.elmt
├── 11_circuit_breakers
│   ├── disjonct-m.elmt
│   ├── disjoncteur1.elmt
│   ├── jistic_1p.elmt
│   └── qet_directory
├── 12_magneto_thermal_circuit_breakers
│   ├── disjoncteur_magneto-thermique_1.elmt
│   └── qet_directory
├── 20_disconnecting_switches
│   ├── qet_directory
│   ├── sectionneur1-2.elmt
│   └── sectionneur1.elmt
├── 30_thermal_relays
│   ├── qet_directory
│   └── relais_therm1.elmt
├── 50_residual_current_circuit_breaker
│   ├── ddr1.elmt
│   ├── disjoncteur_differentiel_magnetothermique.elmt
│   ├── int_diff-1p.elmt
│   ├── int_diff1.elmt
│   ├── qet_directory
│   ├── rcbo.elmt
│   └── rccb.elmt
└── qet_directory
 
7 directories, 22 files
<category name="200_fuses_protective_gears">
      <category name="10_fuses">
        <prefix>F</prefix>
      </category>
      <category name="11_circuit_breakers">
        <prefix>F</prefix>
      </category>
      <category name="12_magneto_thermal_circuit_breakers">
        <prefix>Q</prefix>
      </category>
      <category name="20_disconnecting_switches">
        <prefix>Q</prefix>
      </category>
      <category name="30_thermal_relays">
        <prefix>F</prefix>
      </category>
      <category name="50_residual_current_circuit_breaker">
        <prefix>Q</prefix>
      </category>

Ok, compile and work fine on Apple Silicon chip.
https://download.qelectrotech.org/qet/forum_img_2/QET_ElementScaler_Apple_silicon.jpeg

laurent@mini-de-laurent ~ % cd QET_ElementScaler 
laurent@mini-de-laurent QET_ElementScaler % ./QET_ElementScaler  --FlipVertical -f ../.qet/elements/p.elmt 
laurent@mini-de-laurent QET_ElementScaler % 

./03-build-digikam.sh -->fail

/Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeError.log

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ 
Build flags: 
Id flags:  

The output was:
1
ld: library not found for -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc 
Build flags: 
Id flags:  

The output was:
1
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Determining if the __GLIBC__ exist failed with the following output:
Change Dir: /Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp

Run Build Command(s):/opt/digikam.org.arm64/bin/gmake -f Makefile cmTC_de7ab/fast && /opt/digikam.org.arm64/bin/gmake  -f CMakeFiles/cmTC_de7ab.dir/build.make CMakeFiles/cmTC_de7ab.dir/build
gmake[1] : on entre dans le répertoire « /Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp »
Building C object CMakeFiles/cmTC_de7ab.dir/CheckSymbolExists.c.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc   -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -mmacosx-version-min=11.3 -MD -MT CMakeFiles/cmTC_de7ab.dir/CheckSymbolExists.c.o -MF CMakeFiles/cmTC_de7ab.dir/CheckSymbolExists.c.o.d -o CMakeFiles/cmTC_de7ab.dir/CheckSymbolExists.c.o -c /Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier '__GLIBC__'
  return ((int*)(&__GLIBC__))[argc];
                  ^
1 error generated.
gmake[1]: *** [CMakeFiles/cmTC_de7ab.dir/build.make:79: CMakeFiles/cmTC_de7ab.dir/CheckSymbolExists.c.o] Error 1
gmake[1] : on quitte le répertoire « /Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp »
gmake: *** [Makefile:127: cmTC_de7ab/fast] Error 2


File /Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <stdlib.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef __GLIBC__
  return ((int*)(&__GLIBC__))[argc];
#else
  (void)argc;
  return 0;
#endif
}
Performing C++ SOURCE FILE Test HAVE_LQR_LIBS failed with the following output:
Change Dir: /Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp

Run Build Command(s):/opt/digikam.org.arm64/bin/gmake -f Makefile cmTC_de4a8/fast && /opt/digikam.org.arm64/bin/gmake  -f CMakeFiles/cmTC_de4a8.dir/build.make CMakeFiles/cmTC_de4a8.dir/build
gmake[1] : on entre dans le répertoire « /Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp »
Building CXX object CMakeFiles/cmTC_de4a8.dir/src.cxx.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DHAVE_LQR_LIBS -DQT_MAC_USE_COCOA -D_DARWIN_C_SOURCE -D_LARGEFILE64_SOURCE  -fno-operator-names -fno-exceptions -Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time  -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -mmacosx-version-min=11.3 -fPIE -std=c++17 -MD -MT CMakeFiles/cmTC_de4a8.dir/src.cxx.o -MF CMakeFiles/cmTC_de4a8.dir/src.cxx.o.d -o CMakeFiles/cmTC_de4a8.dir/src.cxx.o -c /Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp/src.cxx
/Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp/src.cxx:2:10: fatal error: 'lqr.h' file not found
#include <lqr.h>
         ^~~~~~~
1 error generated.
gmake[1]: *** [CMakeFiles/cmTC_de4a8.dir/build.make:79: CMakeFiles/cmTC_de4a8.dir/src.cxx.o] Error 1
gmake[1] : on quitte le répertoire « /Users/laurent/dktemp/digikam-master/build/CMakeFiles/CMakeTmp »
gmake: *** [Makefile:127: cmTC_de4a8/fast] Error 2


Source file was:

#include <lqr.h>

int main()
{
LqrImageType t = LQR_RGB_IMAGE;
return 0;
}