Error in uiplugin .pro file Qt 6.4.3
-
wrote on 24 May 2023, 15:44 last edited by
I created a project for a custom widget for Qt Designer. In its .pro file is the line:
QT += widgets svg uiplugin
When I proceed to compile I get this error:
! Unknown module(s) in QT: uiplugin
How should I do ?
-
I created a project for a custom widget for Qt Designer. In its .pro file is the line:
QT += widgets svg uiplugin
When I proceed to compile I get this error:
! Unknown module(s) in QT: uiplugin
How should I do ?
wrote on 24 May 2023, 16:19 last edited byThis post is deleted! -
Then you did not install the apporpriate Qt uitools development package- I would guess (since you did not tell us how you installed Qt).
-
Then you did not install the apporpriate Qt uitools development package- I would guess (since you did not tell us how you installed Qt).
wrote on 24 May 2023, 17:00 last edited by@Christian-Ehrlicher I'm on Linux Debian 11 and to install Qt 6.4.3 I used qt-unified-linux-x64-4.5.2-online(1).run from Qt Open Source site
-
@Christian-Ehrlicher I'm on Linux Debian 11 and to install Qt 6.4.3 I used qt-unified-linux-x64-4.5.2-online(1).run from Qt Open Source site
wrote on 24 May 2023, 17:02 last edited by JoeCFD@giorgik63 Sorry, it is the first time for me to see this module name. My bad. Check this out.
https://forum.qt.io/topic/70843/error-unknown-module-s-in-qt-uiplugin-after-building-from-source/7 -
@giorgik63 Sorry, it is the first time for me to see this module name. My bad. Check this out.
https://forum.qt.io/topic/70843/error-unknown-module-s-in-qt-uiplugin-after-building-from-source/7wrote on 24 May 2023, 17:17 last edited by giorgik63@JoeCFD I also created this plugin under Windows 10 and it works great. Now I wanted to use the same code for Debian. However, I noticed that the Qt wizard for creating the Qt Designer plugin puts me instead:
QT += designer widgets svg
instead of uiplugin (as described in the example on the Qt site) use designer.
-
@JoeCFD I also created this plugin under Windows 10 and it works great. Now I wanted to use the same code for Debian. However, I noticed that the Qt wizard for creating the Qt Designer plugin puts me instead:
QT += designer widgets svg
instead of uiplugin (as described in the example on the Qt site) use designer.
wrote on 24 May 2023, 17:34 last edited by@giorgik63 in your link. Is this the same thing?
PLUGIN_TYPE = designer -
@giorgik63 in your link. Is this the same thing?
PLUGIN_TYPE = designer -
wrote on 24 May 2023, 18:01 last edited by
@giorgik63 only a wild guess: designer = uiplugin
-
@giorgik63 only a wild guess: designer = uiplugin
wrote on 25 May 2023, 11:13 last edited by@JoeCFD Finally I managed to solve the problem. It was enough to use designer instead of uiplugin. Then I had to verify that the right Qt 6.4.3 library was being used from the Projects tab and from the Kits. So to test the plugin I used the Qt Designer version based on Qt 6.4.3 creating a new form of the same type created automatically by Qt Creator and copied it into the test project directory. Now everything is fine.
I then did another test by recreating the whole project using the new Qt 6.5.1 libraries and it worked here too. So always remember to check that you are using the right library version and the right Qt IDE based on that library. -
6/11