##// END OF EJS Templates
Fix multiline axis label positioning....
Fix multiline axis label positioning. Refactored axis label/title handling to not use QFontMetrics but a dummy graphics text item instead. Task-number: QTRD-2056 Change-Id: Ib24f26d214046f97f4fd2d3b2dd720e866561dbd Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>

File last commit:

r2267:92e7d1168aa1
r2534:ec1756baf233
Show More
demos-qmloscilloscope.qdoc
37 lines | 1.9 KiB | text/plain | TextLexer
/ doc / src / demos-qmloscilloscope.qdoc
Tero Ahola
Documented QML oscilloscope
r1825 /*!
\example demos/qmloscilloscope
\title Oscilloscope
\image demos_qmloscilloscope.png
Oscilloscope application demonstrates how to use QtCommercial Charts QML api to implement an
application with strict performance requirements. The application uses generated data with
configurable characteristics to mimic a simple oscilloscope user interface. To find out the
actual screen refresh performance of the application, you can set QML_SHOW_FRAMERATE = 1 to
your run environment settings to get the framerate shown in the application output console.
I.e. go to Projects - Run - Run environment in Qt Creator and select Add. Then you can
experiment with the different configurable options of the demo application to find the
configuration that gives you the best performance in your environment.
Tero Ahola
Removed OpenGL button in QML Oscilloscope demo
r2267 Note: You can try if enabling OpenGL improves the performance with the following startup
parameter:
\code
-graphicssystem opengl
\endcode
Tero Ahola
Documented QML oscilloscope
r1825 The application window is shared by control and scope views:
\snippet ../demos/qmloscilloscope/qml/qmloscilloscope/main.qml 1
\snippet ../demos/qmloscilloscope/qml/qmloscilloscope/main.qml 2
ControlView implements the buttons used for configuring. ScopeView uses a ChartView to show
a chart with two line series:
\snippet ../demos/qmloscilloscope/qml/qmloscilloscope/ScopeView.qml 1
The data of the line series is updated with a QML timer. In a real life application the
updating could triggered with a signal from Qt C++ code.
\snippet ../demos/qmloscilloscope/qml/qmloscilloscope/ScopeView.qml 2
Tero Ahola
QML: Added possibility to define axes when creating series
r1960
The oscilloscope also allows you to switch the type of the series used for visualizing the
signal sources. This is implemented by dynamically destroying and creating series:
\snippet ../demos/qmloscilloscope/qml/qmloscilloscope/ScopeView.qml 3
Tero Ahola
Documented QML oscilloscope
r1825 */