How to get UI Header files without building everything? Nor without using a script that manually runs UIC. Apparently, there's a built-in way to do that.
-
I made a script that would generate the UI Header files. However, I was told about that there's things like
Core_autogenand etc. that generate the header files, without having to build everything!What I want are the
ui_*.hfiles from the.uifiles WITHOUT building.I don't want to build everytime I change something in a
.uifile.Now the problem is, how do you do that???????????
Like, I... don't get it. Like, I have to drill somewhere to find what I want to do.
I am using
ninjato build, idk. How do you make those.hwithout having to manually create a script for it. Like... WHAT DO YOU DO. It's like. I don't get it.You have created a system, that has stuff like
qt_add_uiBut the
.hfiles are only available if you build the thing. But I don't want to build the thing just to get intellisense in Visual Studio IDE. So how can this be fixed.How do I make those
_autogentargets appear.For every
qt_add_uiit creates a target, but how do you just run all the header stuff at once, without building. I can't just make another separate CMake .txt file I think. It will error because it can't find the target thing to like combine it with, e.g.add_executableLike inside
build.ninjayou'll see a new target for every single.hfile like...... WHY -
A slightly confusing and complicated way to ask:
"How can I create a.hfile from a.uifile manually?"The answer is:
Use theuicexecutable as documented here.
It's located in thelibexecdirectory of your Qt installation.