qt-interest@trolltech.com
[Top] [All Lists]

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

Subject: Re: [Qt-interest] Deletion of a widget promoted in QT Designer
From: Karol Krizka
Date: Fri, 05 Jun 2009 13:52:28 +0200
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

_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Qt-interest] Deletion of a widget promoted in QT Designer, Karol Krizka <=