Results 1 to 4 of 4

Thread: Using scroll bars with QwtPlotMagnifier

  1. #1
    Join Date
    Dec 2010
    Posts
    33
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Using scroll bars with QwtPlotMagnifier

    We have used QwtPlotMagnifier to zooming in and zooming out of a QwtPlot. Can someone please tell us how to integrate scroll bars with QwtPlotMagnifier, so that when zoomed in, we can scroll the plot

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

    Default Re: Using scroll bars with QwtPlotMagnifier

    This is something you have to implement yourself.

    Guess you can adopt the ScrollZoomer class ( derive it from QwtPlotMagnifier instead of QwzPlotZoomer ) from the realtime example.

    Uwe

  3. #3
    Join Date
    Dec 2010
    Posts
    33
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Using scroll bars with QwtPlotMagnifier

    But most of the methods used in scrollzoomer are inherited from QwtPlotZoomer and hence not recognized when QwtPlotZoomer is changed to QwtPlotMagnifier...

  4. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,311
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Using scroll bars with QwtPlotMagnifier

    Its about connecting a QAbstractSlider or QwtAbstractSlider to QwtPlot::setAxisScale. The ScrollZoomer is only one of many possible combinations.

    Uwe

Similar Threads

  1. scroll bars are not appearing
    By Cruz in forum Qt Programming
    Replies: 4
    Last Post: 10th September 2010, 17:26
  2. scroll bars in QTabWidget--i don't want them
    By jhowland in forum Qt Programming
    Replies: 1
    Last Post: 29th May 2010, 08:12
  3. QGraphicsView scroll bars disappears
    By jano_alex_es in forum Qt Programming
    Replies: 4
    Last Post: 25th November 2009, 14:17
  4. Replies: 1
    Last Post: 11th June 2009, 05:49
  5. QScrollArea's Scroll Bars
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 19th September 2006, 13:27

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.