Results 1 to 2 of 2

Thread: Distrowatch Example - wrong number of ticks

Threaded View

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

    Default Re: Distrowatch Example - wrong number of ticks

    Instead of:

    Qt Code:
    1. this->axisScaleDraw(axis1)->setScaleDiv(scdiv);
    To copy to clipboard, switch view to plain text mode 
    do

    Qt Code:
    1. this->setAxisScaleDiv( axis1, scldiv );
    To copy to clipboard, switch view to plain text mode 
    The upper way of assigning the ticks is behind the back of the plot and will have a temporary effect only - until the next call of replot ( or updateAxes() ). The second way is known to the plot and also disables autoscaling.

    Uwe

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

    bisasatan (4th January 2014)

Similar Threads

  1. Hiding axis, but not ticks
    By bisasatan in forum Qwt
    Replies: 1
    Last Post: 31st May 2013, 07:55
  2. Replies: 14
    Last Post: 30th October 2012, 15:45
  3. Replies: 2
    Last Post: 18th July 2012, 17:17
  4. Replies: 1
    Last Post: 5th March 2012, 06:34
  5. how to number the ticks of QSlider
    By babu198649 in forum Newbie
    Replies: 4
    Last Post: 11th June 2008, 13:46

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
  •  
Qt is a trademark of The Qt Company.