Results 1 to 3 of 3

Thread: Detecting changes in the qwt plot axis

  1. #1
    Join Date
    Jan 2009
    Posts
    2
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11

    Default Detecting changes in the qwt plot axis

    Hey everyone, Im currently writing an application for viewing EEG recordings but have hit a snag early on.

    Im trying to call a function each time qwt plot has its axis's changed due to zooming or panning.

    By using the "zoomed" signal from the QwtPlotZoomer I can partially achieve this. However, there appears to be no equivalent signal from QwtPlot or QwtPlotPanner which I can use to trigger this function after the plot as been "moved" along after panning.

    Does anyone have any suggestions for a way I could take to get this working?... Perhaps detecting a mouse release event would be a route to take but it seems a little dirty if there is solution already present in the Qwt library.

    Thanks for your time!
    Last edited by mrcolin; 26th January 2009 at 17:10. Reason: updated contents

  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: Detecting changes in the qwt plot axis

    connect(plot->axisWidget(...), SIGNAL(scaleDivChanged()), ... );

    Uwe

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

    mrcolin (27th January 2009)

  4. #3
    Join Date
    Jan 2009
    Posts
    2
    Thanks
    1
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: Detecting changes in the qwt plot axis

    Excellent!...

    Thank you very much for your answer, its a perfect solution, cant believe i missed it!!!

Similar Threads

  1. Replies: 3
    Last Post: 21st December 2010, 14:51
  2. Replies: 4
    Last Post: 10th October 2009, 17:59
  3. export and printing qwt plot
    By giusepped in forum Qwt
    Replies: 6
    Last Post: 17th December 2008, 07:04
  4. Qwt plot problem on compile
    By sincnarf in forum Qwt
    Replies: 2
    Last Post: 14th October 2007, 11:36
  5. Qwt - extra axis
    By steg90 in forum Qwt
    Replies: 2
    Last Post: 10th July 2007, 14:41

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.