Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-57072

[REG: 5.5 - 5.6] Native Menu bar on macOS does not show up

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • 5.6.3, 5.7.2
    • 5.6.0, 5.6.1, 5.6.2, 5.7.0
    • QPA
    • None
    • macOS 10.9, 10.11 and 10.12
    • macOS
    • 9c83d7f871f95b1cc03fb404bd602df32056b9cb

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            sandy.martel123 Sandy Martel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes