[Qt-interest] How can I change a widget's ownership (parent)?

qt-interest at status.e4ward.com qt-interest at status.e4ward.com
Thu Jul 23 04:48:45 CEST 2009


QWidget::setParent()?

On Jul 22, 2009, at 7:33 PM, Kermit Mei wrote:

> hello, community!
> How can I change a widget's ownership? For example, I create a
> pushbutton like this QPushButton(&widget_1), now I want to make its
> parent as widget_2, and it can be shown on widget_2 as a child, how  
> can
> I implement it?
>
> Thanks
> Kermit
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list