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

Menu separator not showing on Big Sur

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.15.5
    • Fix Version/s: None
    • Component/s: GUI: Menus
    • Labels:
      None
    • Environment:
      Big Sur, Xcode 12.5.1
    • Platform/s:
      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

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            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