Results 1 to 2 of 2

Thread: QwtPlotZoomer zooming off the plot canvas

  1. #1
    Join Date
    Jun 2011
    Posts
    17
    Qt products
    Qt3
    Platforms
    MacOS X

    Default QwtPlotZoomer zooming off the plot canvas

    I am using QwtPlotZoomer with a few graphs in my application but I am having a few problems. I do not want to allow the user to zoom off of the original canvas that is shown with the Plot on it, ie; zooming in to negatives.

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,199
    Thanked 847 Times in 796 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QwtPlotZoomer zooming off the plot canvas

    Qt Code:
    1. class YourZoomer: public QwtPlotZoomer
    2. {
    3. ....
    4.  
    5. virtual void zoom( const QRectF &rect )
    6. {
    7. QwtPlotZoomer::zoom( rect & zoomBase() );
    8. }
    9. };
    To copy to clipboard, switch view to plain text mode 
    Uwe

Similar Threads

  1. Replies: 1
    Last Post: 13th May 2011, 18:12
  2. Replies: 1
    Last Post: 7th March 2011, 08:34
  3. Replies: 2
    Last Post: 20th August 2010, 18:55
  4. Replies: 8
    Last Post: 8th October 2009, 16:59
  5. Replies: 7
    Last Post: 22nd September 2008, 22:05

Tags for this Thread

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.