PDA

View Full Version : Change to myUI in Designer....much copy/pasting into the ui.h file



donmorr
19th May 2006, 18:51
Hi All,
One thing annoys me about using designer, is that any time I change the user interface, I have to completely re-import all of my user-interface code to the ui_..._.h file.
Is there any way around this other than being a bit smarter with my classes and nesting my custom ui functions into some UI_Control object to minimise the amount of copy/pasting I have to do every time I change the UI???
Cheers,
Donal

gfunk
19th May 2006, 18:56
You should use "Promote to Custom Widget" if you're deriving a new class for a widget.

jacek
19th May 2006, 19:08
Don't change the ui_*.h file.

http://doc.trolltech.com/4.1/designer-using-a-component.html