Unsolved Is it possible to change color of Windows menu bar in Qt window?
-
I'm working on adding dark theme to my application and I wonder if it's possible also to change the color of windows menu bar?
-
It's possible but you need to go platform-specific and use native code and native APIs.
A different approach would be to disable the native bar and draw it yourself, here's a small blog post about it: https://www.qt.io/blog/custom-window-decorations
-
I did that before, you can create a QWidget and add three QPushbuttons as child widgets to serve as Close, minimize, maximize, then obviously you need to overwrite the QmouseEvent to make the UI to behave like a normal window. Finally, just call setMenuBar() method on the MainWindow