Results 1 to 3 of 3

Thread: QwtPlot->axisScaleDiv does not update after detaching curve

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: QwtPlot->axisScaleDiv does not update after detaching curve

    As soon as you use a zoomer autoscaling gets turned off ( you are controlling the scales manually then - see QwtPlot::setAxisScale() ). Once autoscaling is off, there is no reason for updating the scales, when detaching a curve.
    So you need to re-enable autoscaling manually, when you don't want the zoomer being in control anymore.

    HTH,
    Uwe

  2. #2
    Join Date
    Sep 2015
    Posts
    36
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QwtPlot->axisScaleDiv does not update after detaching curve

    Yes, that fixed this particular problem. Unfortunately I still have one connected to zoomer.

    I have one thread being used exclusively for picking samples. Currently it has two modes - normal and "from zoomer". Normal mode is set to take samples from 0 to end (we display them for the first time), then it activates the slot in class inheriting QwtPlot, sets samples for curves and attaches curves to it. It works fine. But when it comes to zoomer weird things are happening. When is actually zoomer's "rescale" method called? I have feeling that it's called more often than only when I use zoomer to zoom or unzoom area.

    What is more important - how can I reset zoom stack without multiple zoom -1 requests?
    Last edited by Khaine; 1st April 2016 at 00:40.

Similar Threads

  1. qwtplot curve orientation problem
    By tangtao_xp in forum Qwt
    Replies: 2
    Last Post: 27th April 2013, 15:27
  2. Qwtplot curve not shown
    By claudiacrb in forum Qwt
    Replies: 1
    Last Post: 9th June 2012, 08:56
  3. how to create a curve in qwtplot?
    By ethanfeng in forum Qwt
    Replies: 1
    Last Post: 27th March 2011, 09:05
  4. Replies: 1
    Last Post: 13th March 2010, 08:55
  5. Replies: 1
    Last Post: 9th December 2009, 17:14

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.