157a158 > #include "QtGui/qgraphicsproxywidget.h" 916c917,923 < popup->setGeometry(pos.x(), pos.y(), w, h); --- > QRect geometry(pos.x(), pos.y(), w, h); > QGraphicsProxyWidget *proxyWidget = popup->graphicsProxyWidget(); > if (proxyWidget) > proxyWidget->setGeometry(geometry); > else > popup->setGeometry(geometry); > 995a1003,1008 > > QWidget *topLevelWidget = widget->topLevelWidget(); > QGraphicsProxyWidget *proxyWidget = topLevelWidget->graphicsProxyWidget(); > if (proxyWidget) { > d->popup->setParent( topLevelWidget, Qt::Popup ); > }