[Qt-interest] How can I make a widget upon on another?

Tomasz 'Trog' Welman twelman at swmud.pl
Tue Aug 18 08:23:13 CEST 2009


On Tue, 18 Aug 2009, Kermit Mei wrote:

> Hello, community!
>
> If I create two widgets, then the secondly created one will be upon the
> fist one. How can I make the first one upon the second except delete it
> and then create a new one.
>

You can create the second Widget without setting the parent and then
add the first one to the second's one layout.
Look at the example here:

http://doc.trolltech.com/4.5/qwidget.html#setLayout


--
Tomasz 'Trog' Welman



More information about the Qt-interest-old mailing list