Results 1 to 2 of 2

Thread: How to different Scale and Values in Knob

  1. #1
    Join Date
    Jan 2006
    Location
    Berkeley California
    Posts
    109
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to different Scale and Values in Knob

    Qwt 5.1.1

    I want to have a knob with the legend going from 0 to 11, and have the underlying value range from 0 to 4095 and smooth rotation of the knob with a mouse.

    If I setScale(0.0, 11.0, 1) the legend looks correct but the knob rotates in 10 'clicks' (jumps) without allowing setting it to values inbetween. If I try to set the step size smaller, the printed legend goes crazy (it looks like maxScaleTicks in qwt_knob.cpp isn't used anywhere).

    Pointers appreciated.

    Thanks,
    Doug

  2. #2
    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: How to different Scale and Values in Knob

    The "jumps" can be controlled by setRange().

    Uwe

Similar Threads

  1. logarithmic scale
    By Times in forum Qwt
    Replies: 2
    Last Post: 1st July 2008, 15:41
  2. Replies: 13
    Last Post: 12th June 2008, 13:23
  3. QGraphicsView and very small scale values
    By Vladimir in forum Qt Programming
    Replies: 4
    Last Post: 9th July 2007, 18:03

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.