Results 1 to 3 of 3

Thread: Qwt Zoom through PushButtons?

  1. #1
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Thanks
    29
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Thumbs up Qwt Zoom through PushButtons?

    Sir, I have a problem. I have created an application that will zommIn or zoomOut when the pushbutton is clicked. There are two api's for zoomin and zoomout. One is QwtPlotZoomer and QwtPlotMagnifier. But i am confused about which to use? And also I want to get some idea on how to zoomin or zoomout through pushbuttons. I had gone through the examples but all the examples have zoomin or zoomout through mouse or either by key.

  2. #2
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Thanks
    18
    Thanked 68 Times in 66 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt Zoom through PushButtons?

    this is the method you could use :

    QwtPlotZoomer::zoom (const QRectF &)

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

    sonulohani (8th June 2012)

  4. #3
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Thanks
    29
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qwt Zoom through PushButtons?

    Nope zoom is also also not working.

    In this, you have to set each scale axis as per the signal that is generating through the push button.


    Added after 53 minutes:


    I've solved that, if anybody need help, then you're welcome to ask
    Last edited by sonulohani; 8th June 2012 at 11:56.

Similar Threads

  1. how to zoom in zoom out tableview in QT programming?
    By nageshvk in forum Qt Programming
    Replies: 0
    Last Post: 27th October 2010, 06:05
  2. Using ICONs as PushButtons
    By sudhakaran in forum Newbie
    Replies: 10
    Last Post: 4th February 2010, 19:34
  3. QWTPlot Zoom: cannot zoom negative value
    By jwieland in forum Qwt
    Replies: 0
    Last Post: 8th January 2010, 17:16
  4. Three pushButtons in a shape of one
    By Kenji_Takahashi in forum Qt Programming
    Replies: 13
    Last Post: 7th September 2009, 20:25
  5. QGLWidget with text - zoom in / zoom out
    By h123 in forum Qt Programming
    Replies: 1
    Last Post: 16th November 2008, 10:56

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.