-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
5.8.0
-
None
-
macOS Sierra
When these conditions are met then toolbars and selected tab handle of tab bar are painted in black when placed in top toolbar area.
Minimal test case:
test.pro
QT = core gui widgets webenginewidgets TARGET = qtwebengine_macos_unifiedtitleandtoolbar TEMPLATE = app SOURCES += main.cpp
main.cpp
#include <QtWidgets/QApplication> #include <QtWidgets/QMainWindow> #include <QtWidgets/QTabBar> #include <QtWidgets/QToolBar> #include <QtWebEngineWidgets/QWebEngineView> class MainWindow : public QMainWindow { public: MainWindow() : QMainWindow() { QTabBar *tabBar(new QTabBar(this)); tabBar->setDocumentMode(true); tabBar->addTab("Tab 1"); tabBar->addTab("Tab 2"); tabBar->addTab("Tab 3"); QToolBar *toolBar1(new QToolBar("Toolbar 1", this)); toolBar1->setMovable(true); toolBar1->addAction("Action 1"); toolBar1->addSeparator(); toolBar1->addAction("Action 2"); QToolBar *toolBar2(new QToolBar("Toolbar 2", this)); toolBar2->addWidget(tabBar); addToolBar(Qt::TopToolBarArea, toolBar1); addToolBarBreak(Qt::TopToolBarArea); addToolBar(Qt::TopToolBarArea, toolBar2); setUnifiedTitleAndToolBarOnMac(true); setCentralWidget(new QWebEngineView(this)); } }; int main(int argc, char *argv[]) { QApplication application(argc, argv); MainWindow window; window.show(); return application.exec(); }
Original bug report:
https://github.com/OtterBrowser/otter-browser/issues/1330
- duplicates
-
QTBUG-57482 QWebEngineView cause setUnifiedTitleAndToolBarOnMac style error
-
- Closed
-