diff --git a/corona.cpp b/corona.cpp index afaa95466..020da99dd 100644 --- a/corona.cpp +++ b/corona.cpp @@ -456,6 +456,10 @@ void Corona::addOffscreenWidget(QGraphicsWidget *widget) addItem(widget); } + QGraphicsWidget *pw = widget->parentWidget(); + widget->setParentItem(0); + widget->setParent(pw); + //search for an empty spot in the topleft quadrant of the scene. each 'slot' is QWIDGETSIZE_MAX //x QWIDGETSIZE_MAX, so we're guaranteed to never have to move widgets once they're placed here. int i = 0;