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

Menu separator not showing on Big Sur

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.15.5
    • GUI: Menus
    • None
    • Big Sur, Xcode 12.5.1
    • macOS

    Description

      Hi there,

      With the following code, the separator don't seem to be visible in (top level) menus:

       

      #include <QMenu>
      #include <QMenuBar>
      #include <QMainWindow>
      #include <QApplication>
      
      
      int main(int argc, char **argv)
      {
          QApplication app(argc, argv);
          QMainWindow win;
          QMenu *m = win.menuBar()->addMenu("My Menu");
          m->addAction("item 1");
          m->addSeparator();
          m->addAction("item 2");
          win.show();
          return app.exec();
      }
       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            thierryb Thierry Bastian
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes