View Full Version : Change font color of whole application
clepto
26th May 2012, 09:06
Hello, i want to change the color of the font of my whole application, how can i do this?
Thanks
Spitfire
29th May 2012, 10:56
QPalette p = QApplication::palette();
p.setColor( QPalette::Text, Qt::red );
p.setColor( QPalette::WindowText, Qt::red );
p.setColor( QPalette::ButtonText, Qt::red );
p.setColor( QPalette::BrightText, Qt::red );
QApplication::setPalette( p );
aamer4yu
29th May 2012, 11:44
Or using stylesheet -
qApp->setStyleSheet("color:red");
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.