Details
-
Bug
-
Resolution: Won't Do
-
P4: Low
-
None
-
5.2.0
-
None
Description
It worked on Qt4.8.4
#include <QApplication> #include <QMainWindow> #include <QMenuBar> #include <QMenu> int main(int argc, char *argv[]) { QApplication app(argc, argv); QMainWindow window; QMenu menu("not shown"); // menu.addAction("without item"); QMenuBar bar(&window); bar.addMenu(&menu); window.show(); app.exec(); return 0; }
I want to use empty menu becouse I will fill it on aboutToShow signal.