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. Error in uiplugin .pro file Qt 6.4.3
QtWS25 Last Chance

Error in uiplugin .pro file Qt 6.4.3

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 3 Posters 832 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.
  • giorgik63G Offline
    giorgik63G Offline
    giorgik63
    wrote on last edited by
    #1

    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 ?

    JoeCFDJ 1 Reply Last reply
    0
    • giorgik63G giorgik63

      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 ?

      JoeCFDJ Online
      JoeCFDJ Online
      JoeCFD
      wrote on last edited by
      #2
      This post is deleted!
      giorgik63G 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        This post is deleted!

        giorgik63G Offline
        giorgik63G Offline
        giorgik63
        wrote on last edited by
        #3

        @JoeCFD https://code.qt.io/cgit/qt/qttools.git/tree/examples/designer/worldtimeclockplugin/worldtimeclockplugin.pro?h=6.4

        Christian EhrlicherC 1 Reply Last reply
        0
        • giorgik63G giorgik63

          @JoeCFD https://code.qt.io/cgit/qt/qttools.git/tree/examples/designer/worldtimeclockplugin/worldtimeclockplugin.pro?h=6.4

          Christian EhrlicherC Online
          Christian EhrlicherC Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then you did not install the apporpriate Qt uitools development package- I would guess (since you did not tell us how you installed Qt).

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          giorgik63G 1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            Then you did not install the apporpriate Qt uitools development package- I would guess (since you did not tell us how you installed Qt).

            giorgik63G Offline
            giorgik63G Offline
            giorgik63
            wrote on last edited by
            #5

            @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

            JoeCFDJ 1 Reply Last reply
            0
            • giorgik63G giorgik63

              @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

              JoeCFDJ Online
              JoeCFDJ Online
              JoeCFD
              wrote on last edited by JoeCFD
              #6

              @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

              giorgik63G 1 Reply Last reply
              0
              • JoeCFDJ 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

                giorgik63G Offline
                giorgik63G Offline
                giorgik63
                wrote on last edited by giorgik63
                #7

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

                JoeCFDJ 1 Reply Last reply
                0
                • giorgik63G 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.

                  JoeCFDJ Online
                  JoeCFDJ Online
                  JoeCFD
                  wrote on last edited by
                  #8

                  @giorgik63 in your link. Is this the same thing?
                  PLUGIN_TYPE = designer

                  giorgik63G 1 Reply Last reply
                  0
                  • JoeCFDJ JoeCFD

                    @giorgik63 in your link. Is this the same thing?
                    PLUGIN_TYPE = designer

                    giorgik63G Offline
                    giorgik63G Offline
                    giorgik63
                    wrote on last edited by
                    #9

                    @JoeCFD I do not understand your question

                    JoeCFDJ 1 Reply Last reply
                    0
                    • giorgik63G giorgik63

                      @JoeCFD I do not understand your question

                      JoeCFDJ Online
                      JoeCFDJ Online
                      JoeCFD
                      wrote on last edited by
                      #10

                      @giorgik63 only a wild guess: designer = uiplugin

                      giorgik63G 1 Reply Last reply
                      0
                      • JoeCFDJ JoeCFD

                        @giorgik63 only a wild guess: designer = uiplugin

                        giorgik63G Offline
                        giorgik63G Offline
                        giorgik63
                        wrote on last edited by
                        #11

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

                        1 Reply Last reply
                        1
                        • giorgik63G giorgik63 has marked this topic as solved on

                        • Login

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