View Full Version : SETTING THE TEXT COLOR FOR QMessageBox
vinkakarun
4th November 2009, 07:37
Hello everbody,
anyone please suggest me a way top set the color for the text in QMessageBox
ChrisW67
4th November 2009, 09:05
Have you tried setting the text using an HTML fragment containing the font element?
vcp
5th November 2009, 17:32
Hi vinkakarun.
You can try this:
QMessageBox::warning(this , trUtf8("EXAMPLE") ,
"<P>EXAMPLE THE TEXT IN <FONT COLOR='#800000'>RED</FONT> AND <FONT COLOR='#000080'>BLUE</FONT></P>"),QMessageBox::Close);
Enjoy :)
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.