Results 1 to 2 of 2

Thread: Qwt plot with scrollbar

  1. #1
    Join Date
    Aug 2013
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qwt plot with scrollbar

    Hi,
    I am using qwtplotpanner for scroling x axis on qwt plot.
    My question is, I have 4 such plots on one screen and I want to change all plot together using qwtplotscanner.
    Is there any way so that if I move one plot all other plot will move with it?

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

    Default Re: Qwt plot with scrollbar

    Depends on when you want to synchronize the plot:

    If you want to have them synced, while the panner is active the only "easy" solution I see is to send mouse events ( or implement a bridge calling the protected widgetXYEvent handler ) to panners of the plots - remote controlling them.

    If it is good enough to sync the scales, after panning has been done, you can simply connect to the QwtScaleWidget::scaleDivChanged() signal. Note, that is a common way how to sync plot scales according to user interaction - not only for the panner. But avoid creating an endless signal ping pong, f.e by disabling the connections temporarily inside of the slot.

    Uwe

Similar Threads

  1. Delete a Plot from Qwt Plot Matrix
    By krsree in forum Qwt
    Replies: 2
    Last Post: 22nd July 2013, 09:00
  2. Replies: 2
    Last Post: 21st June 2013, 18:04
  3. Replies: 3
    Last Post: 12th April 2013, 06:18
  4. Replies: 1
    Last Post: 17th April 2012, 10:10
  5. Replies: 7
    Last Post: 22nd September 2008, 22:05

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.