Results 1 to 4 of 4

Thread: How do I change the color of arc & text in QwtDial ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How do I change the color of arc & text in QwtDial ?

    No use QWidget::setPalette() or modify the palette using your style sheet.
    By the way: using a stylesheet like in your code snippet above is not necessary - you can do the same using setPalette() in a ( IMHO ) cleaner way.

    Uwe

  2. The following 2 users say thank you to Uwe for this useful post:

    Mesozoic (14th August 2012), rawfool (17th July 2012)

Similar Threads

  1. change text color on QRadioButton
    By vonCZ in forum Newbie
    Replies: 4
    Last Post: 7th November 2012, 20:05
  2. Change text color in QTableWidgetItem
    By npascual in forum Qt Programming
    Replies: 0
    Last Post: 10th May 2011, 17:03
  3. Replies: 3
    Last Post: 22nd January 2010, 16:46
  4. how to change text color in QTableView?
    By phillip_Qt in forum Qt Programming
    Replies: 2
    Last Post: 28th April 2008, 10:03
  5. Change the text color tab page
    By gtthang in forum Qt Programming
    Replies: 4
    Last Post: 18th February 2006, 17:38

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
  •  
Qt is a trademark of The Qt Company.