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

Empty QMenu not shown in QMenuBar on Mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P4: Low
    • None
    • 5.2.0
    • None
    • macOS

    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.

      Attachments

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

        Activity

          People

            tpochep Timur Pocheptsov
            taurus Ivan Romanov
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes