Results 1 to 2 of 2

Thread: Qwt paning

  1. #1
    Join Date
    Feb 2016
    Posts
    1
    Thanks
    1
    Qt products
    Qt4 Qt5 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Default Qwt paning

    Hi,

    In my program I used QwtPlot to show and edit the curve. I used QwtPlotPanner to pan the plot area or canvas. But while panning the plot area goes out side the required axis range.

    For example my x-axis range is 0 to 100. But while panning it goes bellow 0 and above 100.

    Is there any way to restrict it.

    Thanks...

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

    Default Re: Qwt paning

    Not an easy one. Maybe with overloading QwtPanner::widgetMousePress() and QwtPanner::widgetMouseMoveEvent().
    Have a look at the implementation of QwtPlotPanner/QwtPanner to understand how to manipulate the position of the mouse events,

    Uwe

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

    sudheer534 (29th February 2016)

Similar Threads

  1. Replies: 1
    Last Post: 13th March 2014, 09:23
  2. Shapefile rendering,zooming,paning,editing using shaplib and qt opengl es2
    By swapan_gh in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 5th December 2013, 08:00

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.