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. Qt Designer plugins failed to load meta data
Forum Updated to NodeBB v4.3 + New Features

Qt Designer plugins failed to load meta data

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 4 Posters 3.3k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    martonmiklos
    wrote on 10 Jun 2022, 13:07 last edited by
    #1

    Hi folks,

    I am trying to load the designer plugin of this project to the Qt Designer widget in the Qt Creator:
    https://github.com/Skycoder42/QPathEdit

    However I was not able to load it, it fails with Failed to extract plugin metadata from 'plugin.so'
    f3652e64-05a7-4928-a379-0883b8e36310-kép.png

    Here is what I tried: compiled the QtCreator's built in Designer test plugin (File new project - Other project - Qt Custom Designer Widget) with Qt 6.3.0, and it gives the same result.

    I also tried to build this project:
    https://gitlab.com/mattbas/Qt-Color-Widgets
    but it fails the same way.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 10 Jun 2022, 19:13 last edited by
      #2

      Hi,

      This is just a wild guess but I wonder if the empty json data might be the culprit.

      I would try test a default plugin project and if everything goes well start from there.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        martonmiklos
        wrote on 13 Jun 2022, 06:54 last edited by
        #3

        Many thanks for your answer @SGaist!

        It looks that we are entering into a deep rabbit hole :D
        The example designer plugin project shipped with QtCreator does not have a json at all.

        The Analog Clock designer plugin example:
        https://doc.qt.io/qt-6/qtdesigner-customwidgetplugin-example.html

        The documentation lists a json file in the pro file, but it does not have at git:
        https://code.qt.io/cgit/qt/qttools.git/tree/examples/designer/customwidgetplugin?h=6.3

        Do you know if the same json format applies like the QtCreator plugins:
        https://doc.qt.io/qtcreator-extending/plugin-meta-data.html

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 13 Jun 2022, 20:53 last edited by
          #4

          That's why I have suggested to check the "Qt Creator Plugin" project template just in case.

          Designer is older than Qt Creator .

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • G Offline
            G Offline
            GSConsulting
            wrote on 8 Jul 2022, 03:21 last edited by
            #5

            @martonmiklos did you end up resolving this? I am getting the same error, loading the AnalogClockWidget from the Qt 6.2 Examples directory. As you mentioned, the .pro file for the example references a .json file, but it's not referenced from the code anywhere, and no .json file exists in the examples directory. However, trying to load the widget into QtCreater results the error:-
            Failed to extract plugin meta data from '$HOME/Qt/Tools/QtCreator/lib/Qt/plugins/designer/libcustomwidgetplugin.so'

            G 1 Reply Last reply 8 Jul 2022, 07:45
            0
            • G GSConsulting
              8 Jul 2022, 03:21

              @martonmiklos did you end up resolving this? I am getting the same error, loading the AnalogClockWidget from the Qt 6.2 Examples directory. As you mentioned, the .pro file for the example references a .json file, but it's not referenced from the code anywhere, and no .json file exists in the examples directory. However, trying to load the widget into QtCreater results the error:-
              Failed to extract plugin meta data from '$HOME/Qt/Tools/QtCreator/lib/Qt/plugins/designer/libcustomwidgetplugin.so'

              G Offline
              G Offline
              GSConsulting
              wrote on 8 Jul 2022, 07:45 last edited by
              #6

              @SGaist I've just created a plugin through QtCreator based on Qt 6.3.1 using the template. Complete all fields in the templete, and build the template plugin. When loading into the designer plugins path, QtCreator generates the same error the OP was experiencing? Is there something else that needs to be defined to build the plugins on Linux, it seems inconsitent that even the supplied samples don't load?

              S 1 Reply Last reply 8 Jul 2022, 08:15
              0
              • G GSConsulting
                8 Jul 2022, 07:45

                @SGaist I've just created a plugin through QtCreator based on Qt 6.3.1 using the template. Complete all fields in the templete, and build the template plugin. When loading into the designer plugins path, QtCreator generates the same error the OP was experiencing? Is there something else that needs to be defined to build the plugins on Linux, it seems inconsitent that even the supplied samples don't load?

                S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 8 Jul 2022, 08:15 last edited by
                #7

                @GSConsulting Hi and welcome to devnet,

                Might be a silly question but did you use the same version of Qt that was used to build Qt Creator ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  GSConsulting
                  wrote on 10 Jul 2022, 21:13 last edited by
                  #8

                  Hi and thanks. I've installed QtCreator as part of the Qt binaries with the live Qt installer. How do I find out which version of Qt it was built with?

                  I have tried the plugin on 3 different versions of creator. 5.15 which is the default debian package for Ubuntu. 5.35 and 6.2.1, both installed with the live Qt installer. However, in all cases I have no idea which version of Qt the creator was built with. I'll check that when I get to work this morning.

                  Cheers.

                  J 1 Reply Last reply 10 Jul 2022, 21:22
                  0
                  • G GSConsulting
                    10 Jul 2022, 21:13

                    Hi and thanks. I've installed QtCreator as part of the Qt binaries with the live Qt installer. How do I find out which version of Qt it was built with?

                    I have tried the plugin on 3 different versions of creator. 5.15 which is the default debian package for Ubuntu. 5.35 and 6.2.1, both installed with the live Qt installer. However, in all cases I have no idea which version of Qt the creator was built with. I'll check that when I get to work this morning.

                    Cheers.

                    J Offline
                    J Offline
                    JonB
                    wrote on 10 Jul 2022, 21:22 last edited by
                    #9

                    @GSConsulting Help > About from Creator.

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      GSConsulting
                      wrote on 13 Jul 2022, 23:06 last edited by
                      #10

                      Thanks heaps for the quick replies @SGaist and @JonB, turns out the version of creator shipped with Qt6.3 is built on Qt6.2.3. Recompiling the plugins with 6.2.3 does in fact fix the problem. This does raise the question for me, as to how one would go about making a plugin for distribution obviously not knowing which version of QtCreator the consumer of said plugin is going to have. But I'm not up to that yet, so I'll leave that conundrum for another day.

                      1 Reply Last reply
                      1
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 14 Jul 2022, 19:21 last edited by
                        #11

                        Are you thinking Linux distribution ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        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