Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.6.2
-
None
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(); }