Results 1 to 2 of 2

Thread: QWTdial inverted range

  1. #1
    Join Date
    Apr 2008
    Posts
    53
    Thanks
    10

    Default QWTdial inverted range

    Hi, I tried to invert the range on the speedometer in the dials example by doing:

    d_speedo->setRange(240.0, 0.0);

    This shows the speedometer values as 240 down to 0 on the display, but the needle doesn't change. How am I supposed to correctly set the qwtDial range to count down instead of up? Thanks

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

    Default Re: QWTdial inverted range

    Dials with counter clockwise scales are not possible out of the box ( on my TODO list since some time ). At the moment I'm afraid you need to write some ugly code, that maps 240 to 0 and v.v.

    Uwe

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.