Mac: Getting toolbar color via QPalette
-
Hola all. Since the Qt guys think it's a great idea to keep the bg color of the QTabWidget tab area in another color than the window bg color, I thought I might try make them look a bit more standards compliant like this:
QTabBar {
background-color:#e8e8e8;
}I'm getting the color #e8e8e8 from myMainWindow::color(QPalette::Window).name(). But, it's not the right color. Trying with QPalette::Background gives me same value.
Any ideas?
I've attached the following image to further illustrate if my words are unclear:
!http://i41.tinypic.com/rj2kuw.jpg()! -
Hi,
No yet a clean solution but in-between, you could use the color picker from OS X to get the color and hard code it