Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Generating .h files from .ui files
Billiam last edited by
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?
the tool to generate the
uic. 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.
VRonin last edited by
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