PDA

View Full Version : Custom QStyle: change only tool button text color



Lykurg
27th February 2009, 19:55
Hi,

currently I am writing my own QStyle based on QCleanLookStyle. Since my tool bars now have a dark background I need to set up a light color for the text. Can I achieve that easy, because I don't like to rewrite the hole stuff of drawItemText and the QPalette::ButtonText also affects all other buttons which should be untouched.

Thanks