Results 1 to 4 of 4

Thread: Moving window

  1. #1
    Join Date
    Jan 2011
    Posts
    14
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Moving window

    Hello,

    I have a curve with several thousand points.
    The X axis represents the time over several days.

    I would to create a sliding window over an interval. The interval represents a day or few days.

    Is this possible ?
    What are the class that would allow me to get this moving window over an interval ?

    Thank.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Moving window

    Sure its possible.
    I would go for QGrphicsView.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    207
    Thanks
    20
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Moving window

    I think you should look at QwtPlotZoomer and QwtPlotPanner. Use QwtPlotZoomer object to set the scale the same way as QwtPlotPicker does. Now you have your window. Use panner to move in the window.
    Normally, QwtPlotPicker object is used to define the window in the qwt plot. Once this is done, autoscaling is switched off on qwtplot. There are innumerable threads on the the three classes mentioned. You should be able to do it.

  4. #4
    Join Date
    Jan 2011
    Posts
    14
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Moving window

    Quote Originally Posted by pkj View Post
    I think you should look at QwtPlotZoomer and QwtPlotPanner. Use QwtPlotZoomer object to set the scale the same way as QwtPlotPicker does. Now you have your window. Use panner to move in the window.
    Normally, QwtPlotPicker object is used to define the window in the qwt plot. Once this is done, autoscaling is switched off on qwtplot. There are innumerable threads on the the three classes mentioned. You should be able to do it.
    Ok, I'll try with this.
    thank you

Similar Threads

  1. Moving window freezes event loop
    By P@u1 in forum Qt Programming
    Replies: 1
    Last Post: 11th July 2011, 17:19
  2. how to resize a window when its moving
    By gegebelzebuth in forum Qt Programming
    Replies: 3
    Last Post: 25th February 2011, 11:46
  3. Replies: 2
    Last Post: 17th February 2011, 13:30
  4. Replies: 0
    Last Post: 24th May 2010, 13:19
  5. Stop window moving when clicking LMB
    By steg90 in forum Qt Programming
    Replies: 11
    Last Post: 11th June 2007, 11:59

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.