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

setUnifiedTitleAndToolBarOnMac - incorrect color on QTabBar - Mac OS 10.6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.1
    • 4.6.2
    • GUI: Look'n'Feel
    • None
    • macOS

    Description

      When using setUnifiedTitleAndToolBarOnMac together with a QTabBar that has setDocumentMode(true), the tabs do not blend with the toolbar on Snow Leopard.

      On Leopard (10.5) it looks correct.

      #include <QtGui>
      
      int main(int argc, char **argv)
      {
          QApplication app(argc, argv);
          QMainWindow main;
      
          QToolBar *mytool = main.addToolBar("this is a toolbar");
          mytool->addAction("check this out");
      
          main.setUnifiedTitleAndToolBarOnMac(true);
      
          QTabBar* tabbar = new QTabBar(&main);
      //    tabbar->setShape(QTabBar::RoundedNorth);
      //    tabbar->setFocusPolicy(Qt::NoFocus);
      //    tabbar->setTabsClosable(true);
      //    tabbar->setExpanding(false);
          tabbar->setDocumentMode(true);
      //    tabbar->setMovable(true);
      //    tabbar->setUsesScrollButtons(true);
      
          tabbar->addTab("tab one");
          tabbar->addTab("tab two");
      
          main.setCentralWidget(tabbar);
          main.show();
      
          return app.exec();
      }
      

      Attachments

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

        Activity

          People

            richard Richard Moe Gustavsen
            bholm Benedikte Holm (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes