Results 1 to 2 of 2

Thread: Get QwtPlotZoomer from QwtPlot

  1. #1
    Join Date
    Nov 2019
    Posts
    20
    Thanks
    8
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Get QwtPlotZoomer from QwtPlot

    Hi,

    Probably simple question but I can't find a way to return QwtPlotZoomer from QwtPlot. Is it possible?

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

    Default Re: Get QwtPlotZoomer from QwtPlot

    As there can be several of them there is no simple getter. But you can iterate over the children of the plot canvas and identify zoomers by doing a qobject_cast.

    Uwe

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

    Vasya (19th March 2020)

Similar Threads

  1. Replies: 4
    Last Post: 21st February 2019, 10:29
  2. Replies: 9
    Last Post: 25th October 2012, 19:55
  3. QwtPlotZoomer example
    By ken123 in forum Qwt
    Replies: 2
    Last Post: 20th October 2011, 15:20
  4. Sorry - more QwtPlotZoomer questions
    By cnbp173 in forum Qwt
    Replies: 4
    Last Post: 7th May 2010, 09:26
  5. Replies: 6
    Last Post: 14th May 2009, 12:02

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.