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

macOS: Wrong colors on toolbar and tab widgets when using setUnifiedTitleAndToolBarOnMac() and QQuickWidget

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P2: Important P2: Important
    • None
    • 5.5.1, 5.7.0
    • None
    • OS X 10.11.6
    • macOS

      With the following code, the toolbar and the tab widget (in document mode) are displayed with a black background. It seems to only happen if the the main windows has the setUnifiedTitleAndToolBarOnMac set to true.

      #include <QApplication>
      #include <QMainWindow>
      #include <QTabWidget>
      #include <QToolBar>
      #include <QQuickWidget>
      
      
      int main( int argc, char** argv ) {
              QApplication app(argc, argv);
          
              QMainWindow win;
              win.setUnifiedTitleAndToolBarOnMac(true);
              QToolBar tb;
              tb.addAction("bla");
              win.addToolBar(&tb);
      
              QTabWidget mw;
              mw.setDocumentMode(true);
              win.setCentralWidget(&mw);
      
              QQuickWidget *quick = new QQuickWidget;
              mw.addTab(quick, "tab2");
      
              win.show();
              return app.exec();
      }
      

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

            vestbo Tor Arne Vestbø
            thierryb Thierry Bastian
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes