qt_demoe/qwtdemo/examples/realtime
feiyangqingyun 73422ddce9 新增qwt源码版本 2019-11-07 10:55:57 +08:00
..
README 新增qwt源码版本 2019-11-07 10:55:57 +08:00
clear.xpm 新增qwt源码版本 2019-11-07 10:55:57 +08:00
incrementalplot.cpp 新增qwt源码版本 2019-11-07 10:55:57 +08:00
incrementalplot.h 新增qwt源码版本 2019-11-07 10:55:57 +08:00
main.cpp 新增qwt源码版本 2019-11-07 10:55:57 +08:00
mainwindow.cpp 新增qwt源码版本 2019-11-07 10:55:57 +08:00
mainwindow.h 新增qwt源码版本 2019-11-07 10:55:57 +08:00
randomplot.cpp 新增qwt源码版本 2019-11-07 10:55:57 +08:00
randomplot.h 新增qwt源码版本 2019-11-07 10:55:57 +08:00
realtime.pro 新增qwt源码版本 2019-11-07 10:55:57 +08:00
scrollbar.cpp 新增qwt源码版本 2019-11-07 10:55:57 +08:00
scrollbar.h 新增qwt源码版本 2019-11-07 10:55:57 +08:00
scrollzoomer.cpp 新增qwt源码版本 2019-11-07 10:55:57 +08:00
scrollzoomer.h 新增qwt源码版本 2019-11-07 10:55:57 +08:00
start.xpm 新增qwt源码版本 2019-11-07 10:55:57 +08:00

README

1) Incremental plots

IncrementalPlot shows an example how to implement a plot that
displays growing data. 

The example produces random data when you push the start button.
With 'Timer' you can adjust the intervall between the
the generation of the points, with 'Points' you can set the number
of points to be generated.

Unfortunately in Qt4 incremental painting is not possible with QPaintEngines
that doesn't support the QPaintEngine::PaintOutsidePaintEvent feature. 
( These are all common paint engines beside the OpenGL engine, but this one 
is not supported by Qwt yet. )
That is the reason why you can see much faster repaints with Qt3.

2) Stacked Zooming with scrollbars

ScrollZoomer adds scrollbars for zooming. There are a couple of
reasons why the implementation is a hack and therefore the class
is not part of the Qwt lib, but it should be working with all
types of QwtPlots. Copy the code of scrollbar.[h|cpp] and 
scrollzoomer.[h|cpp] to the application code.

Uwe