Unsolved Generating .h files from .ui files
-
Hi!
I am new to Qt and have been reading that by generating a UI using the editor, a .h file will be generated with all of the necessary slots, signals, and connections. However, as I have been using the editor, I have noticed that no slots, signals, or connections are generated in the .h file. Are they supposed to auto-generate? Or do I have to code them by hand? Or, is there another way to auto-generate them that I have not yet read?
Thank you!
-
Hi @Billiam,
the tool to generate the
ui_xxx.h
file fromxxx.ui
is calleduic
. This tool is calley automatically during a proper build process.If you use QtCreator, it will work magically, as the project files will be set up properly.
Regards
-
@Billiam said in Generating .h files from .ui files:
is there another way to auto-generate them that I have not yet read?
There is https://doc.qt.io/qt-5/qobject.html#auto-connection that uic uses but i would never recommend for manual use