PDA

View Full Version : Changing the background of QTabWidget



ike
6th November 2008, 23:18
I'm using the Cleanlooks style with Qt 4.4.0

I really like the way the QTabWidget is styled by default EXCEPT for the background color.

If I change just the background color with a style sheet, I lose the default styling of the window. And I can't seem to re-create the default style of QTabWidget using all of the stylesheet properties.

Does anyone know how I can change the background color of QTabWidget without disturbing the underlying default style ? Or if not, does anyone know to recreate the default cleanlooks QTabWidget using stylesheet properties?

I've looked at this page and still haven't been able to reconstruct the default style:
http://doc.trolltech.com/4.4/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar

wysota
7th November 2008, 10:55
Take a look at the style proxy example in our wiki.

ike
7th November 2008, 13:43
Take a look at the style proxy example in our wiki.

Thanks for your response wysota. I'll have to show this to our developers. Unfortunately, it's a little beyond me as I'm just doing some of the ui design with Qt designer.