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

Error in uiplugin .pro file Qt 6.4.3

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 3 Posters 842 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.
  • G giorgik63
    24 May 2023, 15:44

    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 ?

    J Offline
    J Offline
    JoeCFD
    wrote on 24 May 2023, 16:19 last edited by
    #2
    This post is deleted!
    G 1 Reply Last reply 24 May 2023, 16:33
    0
    • J JoeCFD
      24 May 2023, 16:19

      This post is deleted!

      G Offline
      G Offline
      giorgik63
      wrote on 24 May 2023, 16:33 last edited by
      #3

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

      C 1 Reply Last reply 24 May 2023, 16:39
      0
      • G giorgik63
        24 May 2023, 16:33

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

        C Offline
        C Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on 24 May 2023, 16:39 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

        G 1 Reply Last reply 24 May 2023, 17:00
        0
        • C Christian Ehrlicher
          24 May 2023, 16:39

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

          G Offline
          G Offline
          giorgik63
          wrote on 24 May 2023, 17:00 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

          J 1 Reply Last reply 24 May 2023, 17:02
          0
          • G giorgik63
            24 May 2023, 17:00

            @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

            J Offline
            J Offline
            JoeCFD
            wrote on 24 May 2023, 17:02 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

            G 1 Reply Last reply 24 May 2023, 17:17
            0
            • J JoeCFD
              24 May 2023, 17:02

              @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

              G Offline
              G Offline
              giorgik63
              wrote on 24 May 2023, 17:17 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.

              J 1 Reply Last reply 24 May 2023, 17:34
              0
              • G giorgik63
                24 May 2023, 17:17

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

                J Offline
                J Offline
                JoeCFD
                wrote on 24 May 2023, 17:34 last edited by
                #8

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

                G 1 Reply Last reply 24 May 2023, 17:45
                0
                • J JoeCFD
                  24 May 2023, 17:34

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

                  G Offline
                  G Offline
                  giorgik63
                  wrote on 24 May 2023, 17:45 last edited by
                  #9

                  @JoeCFD I do not understand your question

                  J 1 Reply Last reply 24 May 2023, 18:01
                  0
                  • G giorgik63
                    24 May 2023, 17:45

                    @JoeCFD I do not understand your question

                    J Offline
                    J Offline
                    JoeCFD
                    wrote on 24 May 2023, 18:01 last edited by
                    #10

                    @giorgik63 only a wild guess: designer = uiplugin

                    G 1 Reply Last reply 25 May 2023, 11:13
                    0
                    • J JoeCFD
                      24 May 2023, 18:01

                      @giorgik63 only a wild guess: designer = uiplugin

                      G Offline
                      G Offline
                      giorgik63
                      wrote on 25 May 2023, 11:13 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
                      • G giorgik63 has marked this topic as solved on 25 May 2023, 11:15

                      11/11

                      25 May 2023, 11:13

                      • Login

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