PySide Qt4 widget exchange in a hboxlayout
Posted
by viraptor
on Stack Overflow
See other posts from Stack Overflow
or by viraptor
Published on 2009-11-21T20:30:02Z
Indexed on
2010/06/12
8:02 UTC
Read the original article
Hit count: 335
I'd like to exchange a widget inside a QHBoxLayout. This code seems to work, but as soon as I do the actual app._exec()
, the code crashes with terminate called after throwing an instance of 'boost::python::error_already_set'
. Is there any way to get the actual error message? (or to resolve this problem)
gaParent = gameArea.parent().layout()
gaParent.removeWidget(gameArea)
gameArea = DrawingScreen()
gameArea.setObjectName("gameArea")
gaParent.insertWidget(0, gameArea)
© Stack Overflow or respective owner