QtPython: removeChild/addChild QGroupBox

David Boddie dboddie at trolltech.com
Wed Nov 25 19:57:17 CET 2009

On Mon Nov 23 10:35:26 CET 2009, Threader Slash wrote:

> I am developing a system for a customer which is displayed in a set of
> GroupBox.
> Depending on mouse events, the container (groupBox) must be removed from
> the centralwidget, or then added with new updated data for the table.
> Here is a piece of the code that runs nicely and shows the a groupBox.
> Now it starts to show some effects on removeWidget, but it is still didn't
> clear the box completely.. just the right border of the box is erased.


Dynamically changing layouts isn't the most intuitive thing to do in Qt.
It might be easier to get something close to the effect you are looking for
if you just hide the group box instead.


More information about the Python-list mailing list