Results 1 to 3 of 3

Thread: QGroupBox's title

  1. #1
    Join Date
    Mar 2011
    Posts
    42
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default QGroupBox's title

    hi, how to change QGroupBox's title color,i use QGroupBox's palette to set up it, no response. thanks

  2. #2
    Join Date
    Jul 2010
    Posts
    4
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: QGroupBox's title

    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:

    Qt Code:
    1. color: #FF0000;
    To copy to clipboard, switch view to plain text mode 

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

  3. #3
    Join Date
    Mar 2011
    Posts
    42
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: QGroupBox's title

    ok, thanks your remind, i know what to do.

Similar Threads

  1. QGroupBox title alignment
    By binaural in forum Newbie
    Replies: 2
    Last Post: 9th April 2010, 21:56
  2. QGroupBox
    By Devoraz in forum Newbie
    Replies: 1
    Last Post: 30th July 2009, 04:49
  3. How to set color for QGroupBox Title
    By arunvv in forum Qt Programming
    Replies: 5
    Last Post: 4th December 2008, 17:50
  4. QGroupBox
    By merry in forum Qt Programming
    Replies: 2
    Last Post: 22nd August 2007, 13:11
  5. QGroupBox title truncated on both sides
    By Gopala Krishna in forum Qt Programming
    Replies: 2
    Last Post: 7th October 2006, 15:02

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.