PDA

View Full Version : Promoting to custom widget



cia.michele
25th September 2010, 14:06
GoodAfternoon to everybody,
I'm a newbie with QT and I try to create my custom widget and promote an other to it in designer, so I should be able to use my widget in designer without plugin.
I can use my widget very well but... only this!! If I create a layout with the base widget with other ones, when I run (and promote widget to my widget) my widget is the only widget of the windows!!!
I forgot something about the promotion politics? I create this by QT 2010.04 on Windows XP.

Thansk for your time.

Michele

Lykurg
25th September 2010, 17:37
What exactly does not work for you? What error do you get?

Astronomy
26th September 2010, 11:38
Hi,
so you have already done?:
A Container "QWidget myplaceholder" in your e.g. mainwindow.ui, which you had promoted to CYourNewClass?
Maybe you have missplaced or miss-set some setMainWidget( .. ) which will be shown over all other widgets?

in case: remove: setMainWidget( CYourNewClass-instance )

greetz A