Details
-
Bug
-
Resolution: Out of scope
-
P4: Low
-
4.5.0
-
None
Description
When a QTreeView/Widget is placed into a QGraphicsProxyWidget and displayed in a scene, right-click on the active item editor. An expected context pop-up window shows up (the Copy/Paste/Dellete/etc), but the editor closes due to focusOut event. The pop-up takes focus away from the editor. This does not happen if the widget is not in the QGraphicsProxyWidget.
Test case:
#include <QtGui> int main( int argc, char * argv[] ) { QApplication app( argc, argv ); QGraphicsScene scene; QGraphicsView view( & scene ); QTreeWidget tree; QTreeWidgetItem item( QStringList() << "Hello" ); item.setFlags( item.flags() | Qt::ItemIsEditable ); tree.addTopLevelItem( & item ); scene.addWidget( & tree ); view.show(); return app.exec(); }