Results 1 to 6 of 6

Thread: PlotWin with scroll on real time

Hybrid View

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

    Default Re: PlotWin with scroll on real time

    As far as I understand you want to show a 10s interval starting from a value that depends on the time ( and some other stuff I didn't understand ) - similar to the cpuplot example.

    Then all you need to do is to increment the scales by one each second ( using setAxisScale(t, t +10.0, ...).

    Uwe

  2. #2
    Join Date
    Aug 2008
    Location
    Germany
    Posts
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Re: PlotWin with scroll on real time

    Uwe,
    thanks,
    that sounds good and is simple ... why do I have not this idea?!?!

    but it's possible to implement a scroll bar per default? it works with zoom.
    I need a default x-scrollbar so I can scroll through the hole plot every time ....


    looki

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

    Default Re: PlotWin with scroll on real time

    Quote Originally Posted by looki View Post
    but it's possible to implement a scroll bar per default?
    Sure, put a QScrollBar somewhere and connect its signals to slots, where you shift the range of the x-axis ( using setAxisScaleDiv() ).

    F.e look at the event_filter example, that uses a QwtWheel for scrolling. Another sources for inspiration could be the ScrollZoomer/ScrollBar classes of the realtime example - but don't use them as they are, when you don't need a zoomer.

    Uwe

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

    looki (11th August 2008)

Similar Threads

  1. real time plotting
    By gyre in forum Qwt
    Replies: 4
    Last Post: 11th December 2007, 16:13
  2. Rendering real time video using SDL and QT
    By venk2ksubbu in forum Newbie
    Replies: 4
    Last Post: 13th September 2007, 15:20
  3. How to find the presence of scroll bars at run time
    By anju123 in forum Qt Programming
    Replies: 8
    Last Post: 28th July 2007, 20:30
  4. Display the camera frame in real time
    By alex_lue in forum Qt Programming
    Replies: 8
    Last Post: 27th July 2007, 10:31
  5. Displaying real time images
    By Sheetal in forum Qt Programming
    Replies: 9
    Last Post: 22nd February 2007, 11:29

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.