Re: [Interest] Changing the Layout of a Widget

2012-06-28 Thread Michael Jackson
Thanks. That seemed to have done it with some careful pointer checking. Thanks Mike Jackson On Jun 28, 2012, at 3:52 PM, Jeff Heyob wrote: > Mike, > > Call layout() to get the current layout and delete it so that the widget > releases ownership. > Then setLayout(...) will work. > If you need to

[Interest] Changing the Layout of a Widget

2012-06-28 Thread Michael Jackson
I would like to swap layouts in a QWidget. Is that possible? I see the the setLayout(...) and layout() functions but when I try to set my layout using setLayout() I get an error message saying that there is already a layout. Ok, Sounds reasonable. There doesn't seem to be any "removeLayout()" me