[Qt-interest] Qt-4.2 How to set color for QGroupBox Title

Efan Harris efanharris at gmail.com
Fri Dec 5 01:59:21 CET 2008


Hi You can use style sheet it will do the job

int main(int argc, char **argv)
{
   QApplication app(argc, argv);
   app.setStyleSheet("QGroupBox::title{ color: red }");

   QGroupBox groupBox("Exclusive Radio Buttons");

   groupBox.show();
   return app.exec();
}


On Thu, Dec 4, 2008 at 3:30 PM, <ARUN_KUMAR at denso-diam.com> wrote:

>
> Hi ,  I want to set color for GroupBox Title, just for title, not whole
> background.
> How can I do that?
>
> Thanks & Regards,
> Arun
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081204/c0358fe6/attachment.html 


More information about the Qt-interest-old mailing list