PDA

View Full Version : Changing QTabWidget's tabs color



troorl_ua
14th May 2007, 20:48
I want to do something like this (attachment).
QPalette::setColor(QPalette::Base, QColor()); disagree, because it change only non-acive tabs and change color of all child widgets :(

PS. Sorry for my English ;)

wysota
14th May 2007, 22:49
It's hard to do. I already thought about it. And basically it won't work on some widget styles. The thing is you'd have to change the palette before drawing each tab and there is no easy way to do that. So unless Trolltech introduces some API for this, you can forget about achieving what you want.