Results 1 to 2 of 2

Thread: Qwt Scale Label Precision

  1. #1
    Join Date
    May 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qwt Scale Label Precision

    Hello,

    Is there a way to set the precision of the qwt plot scales?. I am using setAxisScaleDiv to hard code a scale(fixed grid and scales), however I have be unable to find a way to force a fixed format of the tick labels. This results in a graph that bounces all over the place due to dynamically changing scales. Any help would be appreciated.

    Thanks

  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: Qwt Scale Label Precision

    By overloading QwtScaleDraw::label() you have complete control over all tick labels.

    Uwe

Similar Threads

  1. The precision range of double
    By nikhilqt in forum Qt Programming
    Replies: 14
    Last Post: 8th July 2009, 16:08
  2. QString.toFloat() precision.
    By hickscorp in forum Qt Programming
    Replies: 2
    Last Post: 7th December 2007, 08:12
  3. QThread msleep precision
    By Lele in forum Qt Programming
    Replies: 3
    Last Post: 9th November 2007, 00:40
  4. double precision or what?
    By mickey in forum General Programming
    Replies: 7
    Last Post: 20th February 2007, 21:01
  5. precision problem - Help pls
    By munna in forum General Programming
    Replies: 7
    Last Post: 26th May 2006, 05:00

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.