Results 1 to 5 of 5

Thread: Using a zoomer to generate horizontal scrolling without zoom

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,348
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

    Default Re: Using a zoomer to generate horizontal scrolling without zoom

    Why don't you simply use a QwtPlotPanner instead of trying to mangle the zoomer code to do the same thing? The panner is designed to move the canvas around without changing the zoom level.

    If you need to restrict the panning to one axis only, then you can derive from QwtPlotPanner and reimplement as required. I don't remember exactly which methods need to be changed, but it shouldn't be too hard to figure that out.

  2. The following user says thank you to d_stranz for this useful post:

    frankiefrank (2nd January 2011)

  3. #2
    Join Date
    Dec 2010
    Location
    Israel
    Posts
    90
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    59
    Thanked 2 Times in 2 Posts

    Default Re: Using a zoomer to generate horizontal scrolling without zoom

    Thanks for the replies, most of the threads I found on this subject were answered by referring to the realtime example, so I followed that. Now I understand what was the main point (the slider->setaxisscale connection)

    Is there an example using the panner?

    By the way I managed to correct my original code by calling setZoomBase() after changing the axis scale.

Similar Threads

  1. Replies: 1
    Last Post: 7th December 2010, 07:49
  2. 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
  3. Horizontal Scrolling QListWidget
    By bl1nk in forum Qt Programming
    Replies: 1
    Last Post: 17th July 2010, 09:44
  4. How to get vertical/horizontal zoom box?
    By knicewar in forum Qwt
    Replies: 3
    Last Post: 23rd March 2010, 05:09
  5. Replies: 1
    Last Post: 16th November 2009, 06:25

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.