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

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.6.0, 5.6.1, 5.6.2, 5.7.0
    • Fix Version/s: 5.6.3, 5.7.2
    • Component/s: QPA
    • Labels:
      None
    • Environment:
      macOS 10.9, 10.11 and 10.12
    • Platform/s:
      macOS
    • Commits:
      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

            Assignee:
            dedietri Gabriel de Dietrich (drgvond)
            Reporter:
            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