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

Kermit Mei kermit.mei at gmail.com
Thu Jul 23 04:33:52 CEST 2009


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




More information about the Qt-interest-old mailing list