You can do it:
Save the dialoge.ui file in the directory. Use qmake to create a .pro file (qmake -project), qmake is smart enough to detect .ui. It will also generate appropriate makefile rules to invoke uic, the Qt user interface compiler. If you are using visual studio, you can call qmake -tp vc, this will create a visual studio project, connected and ready to use. The visual studio project will generate ui_dialoge.h for you, you can copy it to another project and use it in another header file that this .ui dialog will use
Samer source share