Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
4.8.4
-
mac os
Description
Happens only on Mac with QT 4.8, works ok on Qt5
Use this following code ,
#include <QtGui> #include <QApplication> #include <QMenu> #include <QContextMenuEvent> class Foo : public QWidget { public: Foo() : QWidget(0) {resize(200,200);} void contextMenuEvent(QContextMenuEvent* event) { QMenu menu("Menu"); QMenu* subMenu = new QMenu("Parent", &menu); menu.addMenu(subMenu); subMenu->addAction("Child Item"); menu.exec(event->globalPos()); } }; int main(int argc, char* argv[]) { QApplication app(argc, argv); Foo foo; foo.show(); return app.exec(); }
steps to reproduce,
1. right click to launch context menu
2. down arrow to select parent item, right arrow to select child item.
3. left arrow to close child item.
4. right arrow again to open child item
The child item flickers but doesnt show up.