Custom UI Widget not loading into QtCreator for Linux
-
How exact does version matching has to be between a custom widget compiler and QtCreator to be loaded properly?
My QtCreator comes from Linux Manjaro distro and it has this version info
Qt Creator 12.0.2
Based on Qt 6.6.1 (GCC 13.2.1 20230801, x86_64)I am compiling my own custom widget and it is not loaded into the QtCreator. My compiler versions is (gcc -v):
gcc version 13.2.1 20230801 (GCC)
Target: x86_64-pc-linux-gnuWhy is it not loading?
QtCreator is finding the custom widget metadata but it is not loading.qt.core.plugin.loader: Found metadata in lib /usr/lib/qtcreator/plugins/libaunitspushbuttonplugin.so, metadata= { "IID": "org.qt-project.Qt.QDesignerCustomWidgetInterface", "archlevel": 1, "className": "AUnitsPushButtonPlugin", "debug": true, "version": 394752 }
and here too
qt.core.plugin.loader: Found metadata in lib /home/agron/.local/share/data/QtProject/qtcreator/plugins/12.0.1/libaunitspushbuttonplugin.so, metadata= { "IID": "org.qt-project.Qt.QDesignerCustomWidgetInterface", "archlevel": 1, "className": "AUnitsPushButtonPlugin", "debug": true, "version": 394752 }
I don't see it in the Form Designer inside QtCreator or in QtDesigner app.
It also prints out hunderds of other components getting loaded but not mineqt.core.library: "/usr/lib/qt6/qml/QtQuick/Controls/Fusion/impl/libqtquickcontrols2fusionstyleimplplugin.so" loaded library qt.core.library: "/usr/lib/qt6/plugins/iconengines/libqsvgicon.so" loaded library
...
Any hints?
-
How exact does version matching has to be between a custom widget compiler and QtCreator to be loaded properly?
My QtCreator comes from Linux Manjaro distro and it has this version info
Qt Creator 12.0.2
Based on Qt 6.6.1 (GCC 13.2.1 20230801, x86_64)I am compiling my own custom widget and it is not loaded into the QtCreator. My compiler versions is (gcc -v):
gcc version 13.2.1 20230801 (GCC)
Target: x86_64-pc-linux-gnuWhy is it not loading?
QtCreator is finding the custom widget metadata but it is not loading.qt.core.plugin.loader: Found metadata in lib /usr/lib/qtcreator/plugins/libaunitspushbuttonplugin.so, metadata= { "IID": "org.qt-project.Qt.QDesignerCustomWidgetInterface", "archlevel": 1, "className": "AUnitsPushButtonPlugin", "debug": true, "version": 394752 }
and here too
qt.core.plugin.loader: Found metadata in lib /home/agron/.local/share/data/QtProject/qtcreator/plugins/12.0.1/libaunitspushbuttonplugin.so, metadata= { "IID": "org.qt-project.Qt.QDesignerCustomWidgetInterface", "archlevel": 1, "className": "AUnitsPushButtonPlugin", "debug": true, "version": 394752 }
I don't see it in the Form Designer inside QtCreator or in QtDesigner app.
It also prints out hunderds of other components getting loaded but not mineqt.core.library: "/usr/lib/qt6/qml/QtQuick/Controls/Fusion/impl/libqtquickcontrols2fusionstyleimplplugin.so" loaded library qt.core.library: "/usr/lib/qt6/plugins/iconengines/libqsvgicon.so" loaded library
...
Any hints?
-
How exact does version matching has to be between a custom widget compiler and QtCreator to be loaded properly?
My QtCreator comes from Linux Manjaro distro and it has this version info
Qt Creator 12.0.2
Based on Qt 6.6.1 (GCC 13.2.1 20230801, x86_64)I am compiling my own custom widget and it is not loaded into the QtCreator. My compiler versions is (gcc -v):
gcc version 13.2.1 20230801 (GCC)
Target: x86_64-pc-linux-gnuWhy is it not loading?
QtCreator is finding the custom widget metadata but it is not loading.qt.core.plugin.loader: Found metadata in lib /usr/lib/qtcreator/plugins/libaunitspushbuttonplugin.so, metadata= { "IID": "org.qt-project.Qt.QDesignerCustomWidgetInterface", "archlevel": 1, "className": "AUnitsPushButtonPlugin", "debug": true, "version": 394752 }
and here too
qt.core.plugin.loader: Found metadata in lib /home/agron/.local/share/data/QtProject/qtcreator/plugins/12.0.1/libaunitspushbuttonplugin.so, metadata= { "IID": "org.qt-project.Qt.QDesignerCustomWidgetInterface", "archlevel": 1, "className": "AUnitsPushButtonPlugin", "debug": true, "version": 394752 }
I don't see it in the Form Designer inside QtCreator or in QtDesigner app.
It also prints out hunderds of other components getting loaded but not mineqt.core.library: "/usr/lib/qt6/qml/QtQuick/Controls/Fusion/impl/libqtquickcontrols2fusionstyleimplplugin.so" loaded library qt.core.library: "/usr/lib/qt6/plugins/iconengines/libqsvgicon.so" loaded library
...
Any hints?
-
@Agron What do you mean about "loading" in Qt Creator ?
Do you mean "open" a project ?
If yes, Qt creator is basing its project management on the ".pro" (qmake) file.
Unless you are compiling with cmake.@setos95 What I mean by "loading" is that when I start qtcreator with this command
QT_DEBUG_PLUGINS=1 qtcreator
it prints out a lot of ".... loaded library" messages, but my custom widget is not one of them.
Also, when I start a new UI project, my custom widget doesn't show on the "Widget box"
My custom widget is not there!
Even here it doesn't tell me anything about my custom widget
It's not even here