View Full Version : #include from designer

8th March 2006, 12:17
A question: Wich are advantages/disavantages to make incude from QT Desinger (in implementaion/in declaration; eg form a MainForm) instead of other place (ie MainForm.ui.h)

10th March 2006, 11:05
could u plz explain ur question a little bit more...

10th March 2006, 12:13
I created a mainForm from designer; then I insert 10 include file from desinger (some in implementation, other in declaration); then I compile; later I insert other include files
at the top of file mainform.ui.h because I need them; Was better re-open designer and insert these last include filese from designer? Or is better deleted all include files inserted from desinger and add them all at the top of mainform.ui.h file? (and better for what?)

10th March 2006, 13:07
IMO the best way is not to use .ui.h files at all.

10th March 2006, 13:13
I''m support it too, but what author mean under to make incude from QT Desinger (IMHO it is using .ui.h now) it puzzle :confused:

12th March 2006, 18:14
I actually sort of liked the .ui.h files. They allowed you to seperate GUI behaviour (slots that strictly relate to the GUI but aren't already there) from the real purpose of the widget/dialog. Of course, that's still possible, but it would mean subclassing twice. And the .ui file should contain that behaviour.