Details
Description
The following code works with Qt 4.8.7, 5.3.2 and 5.5.1 but does not with 5.6.1, 5.6.2 and 5.7.
#include <QApplication> #include <QMenuBar> #include <QMenu> int main(int argc, char *argv[]) { QApplication a(argc, argv); QMenuBar *m = new QMenuBar; QMenu *menu = new QMenu( "menu 1" ); menu->addAction( "action 1" ); menu->addAction( "action 2" ); m->addMenu( menu ); return a.exec(); }
No menu is shown with Qt 5.6.1, 5.6.2 and 5.7.