Results 1 to 2 of 2

Thread: avoiding zoom out

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Posts
    75
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default avoiding zoom out

    I have a QwtPlot and QwtPlotMagnifier. I don't want to zoom out beyond curve limits. For example in my curve is in [-10.0, +10.0] I don't wanto to zoom out to show [-20, +20].
    In the same way I don't want to zoom in beyond a certain scale of magnification.
    How can I set magnification bounds?

    thanks

  2. #2
    Join Date
    May 2009
    Posts
    75
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Lightbulb Re: avoiding zoom out - SOLVED

    I have defined derived class from QwtPlotMagnifier. I have reimplemented rescale() method to avoid zooming out

    bye

Similar Threads

  1. Replies: 3
    Last Post: 10th October 2011, 16:55
  2. QGLWidget with text - zoom in / zoom out
    By h123 in forum Qt Programming
    Replies: 1
    Last Post: 16th November 2008, 09:56
  3. Qt Zoom
    By csvivek in forum Qt Programming
    Replies: 3
    Last Post: 6th August 2008, 12:25
  4. how to zoom out item in View/Scene
    By nileshsince1980 in forum Qt Programming
    Replies: 7
    Last Post: 28th December 2007, 10:24
  5. Zoom Options
    By Kapil in forum Qt Programming
    Replies: 2
    Last Post: 9th March 2006, 11:19

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.