[Qt-interest] Deletion of a widget promoted in QT Designer

Karol Krizka kkrizka at gmail.com
Fri Jun 5 13:52:28 CEST 2009


On Fri, 2009-06-05 at 14:46 +0300, Patric wrote:
> Hi all, 
> I was wondering do I have to manually delete my widget, that is used
> by promotion in QT Designer ? I.e., when it's promoted is it
> automatecally gets a parent widget ? I want just to be sure :) 
>  

The widget bahaves exactly the same way. The only difference is that the
code changes from being:

QWidget *myWidget=new QWidget(parent);

to

PromotedWidgetClass *myWidget=new PromotedWidgetClass(parent)

So you don't have to do anything special with them.
--
Cheers,
Karol Krizka
http://www.krizka.net




More information about the Qt-interest-old mailing list