Where to get UIC?
-
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?
-
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?
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 aroundpath/to/Qt/<Qt_version>/<your_compiler>/bin -
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.
-
uic is somewhere in /opt/Qt/ - otherwise you did not install Qt correctly.
-
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.
@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/Qtdir?
Have you searched manually or recursively with your File Manager on Fedora?Check, if a path like
/opt/Qt/6.7.0/gcc/binexists, where you replace6.7.0with the actual Qt version you have in use andgccwith your compiler toolchain.
uicis expected to be located there if you installed it as "Kit" with your Qt installation. -
There must be moc, uic, designer and other tools in this directory. If there is nothing wrt this - yes, you did something wrong.
-
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?
@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 withoutmoc,uicand the other tools... haven't tried it myself) -
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.
@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
*.uiform to a C++ header.
If it works there must be auicsomewhere :) -
L Liss has marked this topic as solved on
-
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.
@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_64would have revealed the uic tool way earlier :)) -
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.