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

Qt 4.8.0 (cocoa) It's not possible to add separators in to the application menu

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 5.15, 6.2
    • 4.8.0, 5.0.2, 5.9.4
    • None
    • Mac OS X
    • macOS

    Description

      In Qt 4.8.0(Cocoa) separators cannot be added to Application Menu.

          QMenu *fileMenu = this->menuBar()->addMenu(tr("&File"));
      
          QAction *open = new QAction(tr("&Open"),fileMenu);
          open->setMenuRole(QAction::ApplicationSpecificRole);
      
          QAction *save = new QAction(tr("&Save"),fileMenu);
          save->setMenuRole(QAction::ApplicationSpecificRole);
      
          fileMenu->addAction(open);
          fileMenu->addSeparator()->setMenuRole(QAction::ApplicationSpecificRole);
          fileMenu->addAction(save);
      

      Attachments

        1. 24067.png
          24067.png
          29 kB
        2. 24067.zip
          33 kB
        For Gerrit Dashboard: QTBUG-24067
        # Subject Branch Project Status CR V

        Activity

          People

            andysh Andy Shaw
            qtcomsupport Qt Support
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes