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

REG: Mac non-native QMenubar menuitems spacing/gap missing

    XMLWordPrintable

Details

    • macOS
    • 3fadd88f30d7308500b7d6012c45346e9c6f47d0

    Description

      There's no gap at all in Mac QMenubar if Qt::AA_DontUseNativeMenuBar flag is set.

      Regression issue. Works fine on Qt 4.8.5.

      #include "mainwindow.h" 
      #include <QApplication> 
      #include <QMenuBar> 
      
      int main(int argc, char *argv[]) 
      { 
      QApplication::setAttribute(Qt::AA_MacPluginApplication); 
      QApplication a(argc, argv); 
      QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar); 
      MainWindow w; 
      QMenuBar * menuBar = new QMenuBar(); 
      menuBar->addMenu("File"); 
      menuBar->addMenu("Edit"); 
      w.setMenuBar(menuBar); 
      menuBar->show(); 
      w.show(); 
      
      return a.exec(); 
      }
      

      Attachments

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

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes