Results 1 to 16 of 16

Thread: how to scroll qwtplot?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Posts
    57
    Thanks
    7
    Thanked 5 Times in 4 Posts

    Default Re: how to scroll qwtplot?

    Quote Originally Posted by Uwe View Post
    zooming != scrolling - don't expect any useful answer as long as there is no reasonable question.
    Interestingly, we scroll AND zoom via a separate plot in GoldenCheetah and using a qxtspanslider.

    Attached is a screenshot. Screenshot at 2012-02-17 22:08:36.jpg

  2. The following 2 users say thank you to liversedge for this useful post:

    alizadeh91 (19th February 2012), van.der.sam (10th March 2012)

  3. #2
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows
    Thanks
    75
    Thanked 24 Times in 21 Posts

    Default Re: how to scroll qwtplot?

    Thanks liversedge...
    Can u explain more about GoldenCheetah?? Is it a Qt component or something like that??

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

    Cool Re: how to scroll qwtplot?

    Use

    (void) new QwtPlotPanner(plot->canvas());
    (void) new QwtPlotMagnifier(plot->canvas());

    and dont forget to include qwt_plot_magnifier.h and qwt_plot_panner.h

    you will able to zoom in or zoom out through mouse scroll.
    and you can able to move your curve.

  5. #4
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows
    Thanks
    75
    Thanked 24 Times in 21 Posts

    Default Re: how to scroll qwtplot?

    That is a good way sonulohani Thanks

Similar Threads

  1. Scroll bars in scroll area not comming in scroll area
    By aurora in forum Qt Programming
    Replies: 3
    Last Post: 4th January 2012, 07:50
  2. Scroll bars in scroll area not comming
    By aurora in forum Qt Programming
    Replies: 3
    Last Post: 27th December 2011, 20:56
  3. QDial disabling key scroll and mouse wheel scroll
    By ldg20 in forum Qt Programming
    Replies: 2
    Last Post: 3rd June 2010, 00:05
  4. Replies: 0
    Last Post: 28th December 2009, 13:24
  5. Replies: 6
    Last Post: 14th April 2006, 06:39

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.