Results 1 to 2 of 2

Thread: Set background color for QwtDialSimpleNeedle

  1. #1
    Join Date
    Oct 2017
    Posts
    25
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Set background color for QwtDialSimpleNeedle

    I see how I can set mid and base color for QwtDialSimpleNeedle as input parameters to the constructor.
    But from the documentation I don't find a way to specify the color for the background of the needle (I mean the rectangle thta contains the needle).

    Can someone give me a suggestion, please?

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,309
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Set background color for QwtDialSimpleNeedle

    If you mean the thing in the center: it is colored using QPalette::Base. But Qwt is open source - you can simply check the code in qwt_dial_needle.cpp/qwt_dial.cpp to see what is going on.

    Uwe

Similar Threads

  1. QwtLegend - set background color
    By saracaeus in forum Qwt
    Replies: 4
    Last Post: 10th December 2013, 15:54
  2. Background color
    By FelixB in forum Qwt
    Replies: 4
    Last Post: 24th June 2013, 08:03
  3. QPushButton color and background
    By satanowicz in forum Newbie
    Replies: 4
    Last Post: 25th May 2010, 21:56
  4. textEdit background color
    By briang in forum Newbie
    Replies: 3
    Last Post: 5th November 2009, 18:24
  5. background color of a MainWindow
    By sabeesh in forum Qt Programming
    Replies: 3
    Last Post: 24th July 2007, 10:27

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.