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. Where to get UIC?
Forum Updated to NodeBB v4.3 + New Features

Where to get UIC?

Scheduled Pinned Locked Moved Solved General and Desktop
14 Posts 4 Posters 2.2k Views 2 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.
  • L Offline
    L Offline
    Liss
    wrote on last edited by
    #1

    I am attempting to put together an interface that is defined at compile time. I designed this interface in QT Designer. I see that I can use the User Interface Compiler to turn my .ui file into c++. What I cannot find is where to grab or how to install the UIC? I'm on Fedora Workstation 40. I've googled around; I've searched my distro's repositories; where do I find this piece of software?

    Pl45m4P 1 Reply Last reply
    0
    • L Liss

      I am attempting to put together an interface that is defined at compile time. I designed this interface in QT Designer. I see that I can use the User Interface Compiler to turn my .ui file into c++. What I cannot find is where to grab or how to install the UIC? I'm on Fedora Workstation 40. I've googled around; I've searched my distro's repositories; where do I find this piece of software?

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by Pl45m4
      #2

      @Liss

      Hi and welcome :)

      How did you install Qt? Are you using QtCreator as IDE?

      Usually the user interface compiler comes with your Qt installation.

      Can't speak for Fedora but usually it's located in your Qt dir.
      Somewhere around path/to/Qt/<Qt_version>/<your_compiler>/bin


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      2
      • L Offline
        L Offline
        Liss
        wrote on last edited by
        #3

        Thank you so much for getting back to me! I installed QT using the QT Maintenance Tool (I'm in the process of refactoring an old code base away from wxWidgets, so I'm very new to Qt). I've been all around my /opt/Qt/ directory, but can find no trace of anything called uic. I am not using QtCreator, just QtDesigner and then doing the actual coding in CLion.

        Pl45m4P 1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          uic is somewhere in /opt/Qt/ - otherwise you did not install Qt correctly.

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

          1 Reply Last reply
          1
          • L Liss

            Thank you so much for getting back to me! I installed QT using the QT Maintenance Tool (I'm in the process of refactoring an old code base away from wxWidgets, so I'm very new to Qt). I've been all around my /opt/Qt/ directory, but can find no trace of anything called uic. I am not using QtCreator, just QtDesigner and then doing the actual coding in CLion.

            Pl45m4P Offline
            Pl45m4P Offline
            Pl45m4
            wrote on last edited by Pl45m4
            #5

            @Liss said in Where to get UIC?:

            I've been all around my /opt/Qt/ directory, but can find no trace of anything called uic

            Like @Christian-Ehrlicher already said, there must be.
            What do you have inside your /opt/Qt dir?
            Have you searched manually or recursively with your File Manager on Fedora?

            Check, if a path like /opt/Qt/6.7.0/gcc/bin exists, where you replace 6.7.0 with the actual Qt version you have in use and gcc with your compiler toolchain.
            uic is expected to be located there if you installed it as "Kit" with your Qt installation.


            If debugging is the process of removing software bugs, then programming must be the process of putting them in.

            ~E. W. Dijkstra

            1 Reply Last reply
            0
            • L Offline
              L Offline
              Liss
              wrote on last edited by
              #6

              I was able to locate /opt/Qt/6.7.2/gcc_64/bin/ but there is no uic in that directory. Does this mean I installed incorrectly?

              Pl45m4P 1 Reply Last reply
              0
              • Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by
                #7

                There must be moc, uic, designer and other tools in this directory. If there is nothing wrt this - yes, you did something wrong.

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

                1 Reply Last reply
                1
                • L Liss

                  I was able to locate /opt/Qt/6.7.2/gcc_64/bin/ but there is no uic in that directory. Does this mean I installed incorrectly?

                  Pl45m4P Offline
                  Pl45m4P Offline
                  Pl45m4
                  wrote on last edited by Pl45m4
                  #8

                  @Liss said in Where to get UIC?:

                  I was able to locate /opt/Qt/6.7.2/gcc_64/bin/ but there is no uic in that directory. Does this mean I installed incorrectly?

                  What parts/modules did you install exactly when using the Online Installer?
                  Did you do a standard Qt 6.7.2 installation or did you choose custom installation and then unchecked everything except the Qt Libs?
                  (I don't know if it is even possible to install Qt without moc, uic and the other tools... haven't tried it myself)


                  If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                  ~E. W. Dijkstra

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    Liss
                    wrote on last edited by
                    #9

                    Okay, so I wiped my Qt install, and re-installed everything through the Online Installer. I selected the desktop development option, didn't click anything else to customize, and installed. The UIC still isn't there. I'm at a loss.

                    Pl45m4P 1 Reply Last reply
                    0
                    • L Liss

                      Okay, so I wiped my Qt install, and re-installed everything through the Online Installer. I selected the desktop development option, didn't click anything else to customize, and installed. The UIC still isn't there. I'm at a loss.

                      Pl45m4P Offline
                      Pl45m4P Offline
                      Pl45m4
                      wrote on last edited by Pl45m4
                      #10

                      @Liss said in Where to get UIC?:

                      I selected the desktop development option, didn't click anything else to customize, and installed. The UIC still isn't there. I'm at a loss.

                      That's impossible. There is no way that a standard installation doesn't include tools like uic.

                      Even if you don't plan to use it: Start QtCreator, create a new project and try to compile any *.ui form to a C++ header.
                      If it works there must be a uic somewhere :)


                      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                      ~E. W. Dijkstra

                      1 Reply Last reply
                      0
                      • L Offline
                        L Offline
                        Liss
                        wrote on last edited by
                        #11

                        I opened up QtCreator and imported the project. Nowhere could I find an option to compile the .ui file. Maybe I just don't know where to look?

                        1 Reply Last reply
                        0
                        • L Offline
                          L Offline
                          Liss
                          wrote on last edited by
                          #12

                          I solved it! After playing around with some regular expressions, I was able to locate it at /opt/Qt/6.7.2/gcc_64/libexec/uic

                          What it was doing in there I do not know. But thank you all for the help.

                          Pl45m4P JonBJ 2 Replies Last reply
                          1
                          • L Liss has marked this topic as solved on
                          • L Liss

                            I solved it! After playing around with some regular expressions, I was able to locate it at /opt/Qt/6.7.2/gcc_64/libexec/uic

                            What it was doing in there I do not know. But thank you all for the help.

                            Pl45m4P Offline
                            Pl45m4P Offline
                            Pl45m4
                            wrote on last edited by
                            #13

                            @Liss said in Where to get UIC?:

                            I was able to locate it at /opt/Qt/6.7.2/gcc_64/libexec/uic

                            So you didn't searched the directory with you File Explorer?
                            A recursive directory search starting in /opt/Qt/6.7.2/gcc_64 would have revealed the uic tool way earlier :))


                            If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                            ~E. W. Dijkstra

                            1 Reply Last reply
                            1
                            • L Liss

                              I solved it! After playing around with some regular expressions, I was able to locate it at /opt/Qt/6.7.2/gcc_64/libexec/uic

                              What it was doing in there I do not know. But thank you all for the help.

                              JonBJ Online
                              JonBJ Online
                              JonB
                              wrote on last edited by
                              #14

                              @Liss
                              For next time I suggest you do a

                              find / -name uic -print
                              

                              rather than trying to guess where something might be when you are trying to locate some file under Linux.

                              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