Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Custom UI Widget not loading into QtCreator for Linux
Forum Update on Monday, May 27th 2025

Custom UI Widget not loading into QtCreator for Linux

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 289 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Agron
    wrote on last edited by Agron
    #1

    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-gnu

    Why 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 mine

    qt.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?

    A S 2 Replies Last reply
    0
    • A Agron

      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-gnu

      Why 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 mine

      qt.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?

      A Offline
      A Offline
      Agron
      wrote on last edited by
      #2

      can anyone comment please?

      1 Reply Last reply
      0
      • A Agron

        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-gnu

        Why 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 mine

        qt.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?

        S Offline
        S Offline
        setos95
        wrote on last edited by setos95
        #3

        @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.

        A 1 Reply Last reply
        0
        • S setos95

          @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.

          A Offline
          A Offline
          Agron
          wrote on last edited by
          #4

          @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"
          3bd65a87-2c92-4854-8c56-c7cb50294f2d-Screenshot_20240229_164126.png

          My custom widget is not there!

          Even here it doesn't tell me anything about my custom widget
          e488b596-3bf2-48b2-900f-47989bc22889-image.png

          It's not even here
          cd998e57-f95a-4343-bc49-09a7c76296ad-image.png

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved