Results 1 to 2 of 2

Thread: Change last zoom view

  1. #1
    Join Date
    Jan 2015
    Posts
    6
    Qt products
    Qt5
    Platforms
    Windows

    Default Change last zoom view

    Hello,

    I make my own QwtPlot class, and I add a QwtPlotZoomer.

    But when I attach curve and zoom out with right clic, I am not able to go to the right axis scale, I all the time have 0-1000 for xBottom and yLeft.

    I try to set the zoomBase and to make a new QwtPlotZoomer after adding my curve but nothing works.

    When I set the axisScale BEFORE adding zoom it works, but I am not able to know the scale at this time :s.

    Any idea?

    Thanks
    Sangfeust

  2. #2
    Join Date
    Jan 2015
    Posts
    6
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Change last zoom view

    Badly explained my question but I have found solution:

    After attaching data and setting axis scale make all the time:
    myPlot->myZoomer->setZoomBase();

    Where myZoomer is QwtPlotZoomer you attach to the QwtPlot.

Similar Threads

  1. Replies: 1
    Last Post: 13th May 2011, 18:12
  2. Overloading Shape Paint change on scene zoom
    By matteo.boscolo in forum Qt Programming
    Replies: 1
    Last Post: 6th September 2010, 07:15
  3. how to zoom out item in View/Scene
    By nileshsince1980 in forum Qt Programming
    Replies: 7
    Last Post: 28th December 2007, 10:24
  4. Replies: 2
    Last Post: 21st May 2007, 21:12
  5. Change the Model via the View
    By thw in forum Qt Programming
    Replies: 1
    Last Post: 25th September 2006, 14:13

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.