How to change a menubars style? (Example ?)
-
ehh, but how?
Could you give me a code-snipset?lets say this is the menu:
menuBar: MenuBar { Menu { title: qsTr("&File") MenuItem { text: qsTr("&Open") onTriggered: messageDialog.show(qsTr("Open action triggered")); } MenuItem { text: qsTr("E&xit") onTriggered: Qt.quit(); } } }
-
@themts You can set a custom palette to the application itself. For eg:
QGuiApplication app(argc, argv); QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral("qrc:///Example.qml"))); QPalette customPalette(app.palette()); customPalette.setColor(QPalette::WindowText,QColor("yellow")); app.setPalette(customPalette); return app.exec();