1

(98 replies, posted in Code)

I also just noticed these messages when starting Qet:

qt.core.qobject.connect: QObject::connect: No such signal QSignalMapper::mapped(QWidget *) in /home/magnus/qet-src/sources/qetapp.cpp:118
qt.core.qobject.connect: QObject::connect: No such signal QSignalMapper::mapped(QWidget *) in /home/magnus/qet-src/sources/qetdiagrameditor.cpp:98

2

(9 replies, posted in Code)

Hello plc-user, thanks. If there are other people addressing this problem I'm not completely wrong nomicons/smile this is probably the first thing that annoyed me wit Qet.

What I am wondering is if the shift-button is interfering with something, but I haven't noticed anything. But it could be any button really, and maybe a hint should be implemented in the popup when you hover over the text that tells you that shift or whatever button moves the text.

3

(98 replies, posted in Code)

Nice, just happy to help. Like I said, did too much work on this to just let it sit on my computer nomicons/smile

I attached a screenshot of the table issue, you can see how wide it is. And it grows in width each time you refresh the table.

I've only gotten it to compile with the Qt6 Online installer, i'm on Ubuntu 22.0. Latest Qt6 I see as a package now is 6.4.2, and I think it was 6.3 something when I tried to compile and started to make it work with qt6. So it's definitely possible it works with earlier versions than 6.8, 6.7 obviously works nomicons/smile
Also the KF6-versions are old on my Ubuntu release so I think I was only able make KF6.8 compile reliably from source.

4

(9 replies, posted in Code)

...and thanks for adding the translation!

uploaded my other branches, see my post in the Qt6-thread.
I've played around with 'git rebase' too much I see though, the other branches are merged into qt6-cmake. Need to read up a bit on git nomicons/smile

it's supposed to be two other separate branches:
conductor_texts, adding variables %wf, %wv, %wc and %ws to conductor labels
selective_move, need to hold down shift to move dynamic texts of a symbol - otherwise the whole symbol is moved. (I find it very annoying to move symbols sometimes, the texts are always moved when I want to move the symbol instead)

I have a local backup copy of my repository, I'm gonna see if I can rescue the commit history and branches.

5

(98 replies, posted in Code)

hello, I just uploaded my qt6-cmake branch which I have succesfully compiled QET with QT 6.8.

github.com/elevatormind/qelectrotech-source-mirror/tree/qt6-cmake

My steps to succesfully compile QET:

Install Qt 6.8.0 (I installed it with the online installer), assuming Qt 6.8.0 installed to "~/Qt/6.8.0/"

Install ECM 6.8.0 manually:

git clone [url]https://github.com/KDE/extra-cmake-modules.git[/url] ecm-src
git checkout tags/v6.8.0
mkdir ecm-build && cd ecm-build
~/Qt/6.8.0/gcc_64/bin/qt-cmake -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=<Release or Debug> -G Ninja ../ecm-src
cmake --build . -j<n>
sudo cmake --install .

Compile QET (from a clean build-dir):

~/Qt/6.8.0/gcc_64/bin/qt-cmake -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=<Release or Debug> -DPACKAGE_TESTS=OFF -DBUILD_KF6=ON -G Ninja ../qet-src
cmake --build . -j<n>
sudo cmake --install .

Note, this will download and compile KCoreAddons and KWidgetAddons from github with cmake by default so no need to have them installed. This is controlled by the BUILD_KF6 (ON by default) and KF6_GIT_TAG (6.8.0 by default) cmake options.
I haven't got ExtraCmakeModules to work with the download and compile with cmake, but I assume it's only used for compiling and not needed at runtime so shouldn't be an issue.

I can't remember exactly why but there were some problems compiling KF6 addons lower than 6.8.0.

There are a lot of compile warning and error fixes, these maybe should be reviewed as I can't guarantee any bugs or side effects, there are probably some other fixes in there also that might not be related to Qt6. I remember putting all the .qm-files in a Qt-resource for example.

I have so far discovered two issues with QET/QT6.
1. Symbol library panel, the texts don't show until you hover over them with the mouse.
2. Nomenclature tables are growing in width, when you reload them the width increases.

6

(9 replies, posted in Code)

Hello again, sorry for late reply. I have a lot going in my private life so i will probably be a bit inactive and not always reply very fast, but I will try to contribute now and then.
I will upload everything to my github repository

7

(9 replies, posted in Code)

Hello QElectroTech team, I've been working on a Swedish translation for some time but never gotten around to actually share it until now.

I've created a fork at https://github.com/elevatormind/qelectr … rce-mirror with a branch "lang_sv" for it. I don't have much experience in code collaboration earlier, just been coding privately for fun from time to time so still trying to get a grasp on forks with github. If this is interesting, do you want me to create a pull request for this, or handle it another way?

Some background on me as I pop up from nowhere, I'm drawing electrical diagrams for a living at a company constructing control cabinets for elevators. I'm using Elprocad at work but in the process of switching to Zuken E3, and have been using EPlan for a couple of years earlier. I've found QET earlier and played around with it as I find it an interesting project, and have considered using it for work, but it's not quite there yet. But that's how I started to see if I could make a translation for it and here we are!

PS. I've done two other branches with small features that may or may not be useful, will push them up for evaluation and try to post something about them here in the forum
PS 2. And one bigger but messy branch getting QET to compile with QT6 / cmake (with QT6 and KF 6.8+ i've managed to make a static compile of QET)