Results 1 to 4 of 4

Thread: QwtDial: set custom frameShadow

  1. #1
    Join Date
    Jul 2012
    Posts
    7
    Thanks
    1

    Default QwtDial: set custom frameShadow

    Hi!

    Is it possible to set the frame shadow to black in a QwtDial? The only options I see are "plain", "raised" and "sunken". Do you know how to do this?
    The border color only controls the color of the square widget and not the circle area that I am interested in.

  2. #2
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Thanks
    29
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QwtDial: set custom frameShadow

    use stylesheets...
    Heavy Metal Rules. For those about to rock, we salute you.
    HIT THANKS IF I HELPED.

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

    Default Re: QwtDial: set custom frameShadow

    In case of a plain frame QPalette:ark is used otherwise the gradient for the frame is build from QPalette::Light and QPalette:ark. If you need something more advanced you can simply overload QwtDialo::drawFrame().

    Uwe

    PS: Qt doesn't offer a way to extend style sheets for custom widgets beside what you derive from the base class. In case of Qwt widgets it is usually the "Box Model" only.

  4. The following user says thank you to Uwe for this useful post:

    abraxas (15th August 2012)

  5. #4
    Join Date
    Aug 2012
    Location
    Tucson, AZ, USA
    Posts
    7
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QwtDial: set custom frameShadow

    I haven't been successful in my attempts to do this either. Currently my dial (which is a speedo) is mostly dark with a white interior face. Would anyone be able to share any code snippets demonstrating how to set the face color properly?

Similar Threads

  1. QwtDial works slowly in QWS
    By simophin in forum Qwt
    Replies: 1
    Last Post: 19th July 2010, 07:00
  2. QWTdial inverted range
    By jmsbc in forum Qwt
    Replies: 1
    Last Post: 12th January 2009, 21:21
  3. QWTDial problem
    By zaferaltug in forum Qwt
    Replies: 2
    Last Post: 20th November 2008, 15:40
  4. Can I Add two needle for QwtDial
    By validator in forum Qwt
    Replies: 4
    Last Post: 14th February 2008, 08:57
  5. QwtDial not exits
    By hiuao in forum Qwt
    Replies: 1
    Last Post: 23rd August 2007, 09:22

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.