PDA

View Full Version : QGroupBox's title



lzpmail
2nd June 2011, 11:27
hi, how to change QGroupBox's title color,i use QGroupBox's palette to set up it, no response. thanks

mousa_mk
2nd June 2011, 17:32
I'm not aware of all ways to do this, but you can use this approach too:
Set the styleSheet property of QGroupBox to this:


color: #FF0000;

It'll change the color of groupbox title to red.
Use QColor::name() to generate the compatible color code for the above statement.

lzpmail
3rd June 2011, 03:00
ok, thanks your remind, i know what to do.