qt_demoe/third/qwtdemo/examples/realtime
feiyangqingyun 174992f358 彻底改版2.0 2021-11-17 15:33:19 +08:00
..
README 彻底改版2.0 2021-11-17 15:33:19 +08:00
clear.xpm 彻底改版2.0 2021-11-17 15:33:19 +08:00
incrementalplot.cpp 彻底改版2.0 2021-11-17 15:33:19 +08:00
incrementalplot.h 彻底改版2.0 2021-11-17 15:33:19 +08:00
main.cpp 彻底改版2.0 2021-11-17 15:33:19 +08:00
mainwindow.cpp 彻底改版2.0 2021-11-17 15:33:19 +08:00
mainwindow.h 彻底改版2.0 2021-11-17 15:33:19 +08:00
randomplot.cpp 彻底改版2.0 2021-11-17 15:33:19 +08:00
randomplot.h 彻底改版2.0 2021-11-17 15:33:19 +08:00
realtime.pro 彻底改版2.0 2021-11-17 15:33:19 +08:00
scrollbar.cpp 彻底改版2.0 2021-11-17 15:33:19 +08:00
scrollbar.h 彻底改版2.0 2021-11-17 15:33:19 +08:00
scrollzoomer.cpp 彻底改版2.0 2021-11-17 15:33:19 +08:00
scrollzoomer.h 彻底改版2.0 2021-11-17 15:33:19 +08:00
start.xpm 彻底改版2.0 2021-11-17 15:33:19 +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