diff options
author | Nico Vertriest <nico.vertriest@qt.io> | 2017-10-03 15:40:01 +0200 |
---|---|---|
committer | Nico Vertriest <nico.vertriest@qt.io> | 2017-10-11 08:49:44 +0000 |
commit | bca35ce54a541991ff1e36a9bb2e0d436c757ed9 (patch) | |
tree | 2035aa2a1a96018907362fff09d71d10f92a1810 /src | |
parent | f9c410f619c1019fc361e230df0e4d2a2259e8e9 (diff) | |
download | qtquickcontrols-bca35ce54a541991ff1e36a9bb2e0d436c757ed9.tar.gz |
Doc: add documentation to Dashboard examplev5.10.0-beta2
Task-number: QTBUG-60648
Change-Id: I79b9fdfde18041d95b7aa422bfb4d188ed907589
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/extras/doc/src/qtquickextras-examples.qdoc | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/src/extras/doc/src/qtquickextras-examples.qdoc b/src/extras/doc/src/qtquickextras-examples.qdoc index f54834fd..8ae35ef5 100644 --- a/src/extras/doc/src/qtquickextras-examples.qdoc +++ b/src/extras/doc/src/qtquickextras-examples.qdoc @@ -31,7 +31,7 @@ \title Qt Quick Extras Examples \brief A collection of examples for \l{Qt Quick Extras}. - Below is a listing of the examples for \l{Qt Quick Extras}. + Below you will find a list with examples for \l{Qt Quick Extras}. */ /*! @@ -53,6 +53,41 @@ \image qtquickextras-example-dashboard.png This example project demonstrates the use of \l CircularGauge to create a car dashboard. + + + The ValueSource type generates random data for testing the dashboard. + The data is random but there is a logical link between some of them, + for example, \c kph and \c rpm. + + + \snippet dashboard/qml/ValueSource.qml 0 + + It runs a looping SequentialAnimation that sets the values of + the properties over time. + + The SequentialAnimation object consists of several ParallelAnimation + objects, which in turn consist of two NumberAnimations, one for + \c kph and one for \c rpm. Both let the value develop to a certain + value over a specified \c duration with the Easing type \c Easing.InOutSine + + \snippet dashboard/qml/ValueSource.qml 1 + + The flashTimer object switches the turn signals \c on or \c off. + + \snippet dashboard/qml/TurnIndicator.qml 1 + + The \c paintOutlinePath(ctx) method does the actual painting of the arrow + for the turn signal. + + \snippet dashboard/qml/TurnIndicator.qml 2 + + The screen consists of a \c foregroundCanvas and a \c backgroundCanvas. + \c foregroundCanvas displays the green turn signal if the \c on and + \c flashing booleans are \c true. + + \snippet dashboard/qml/TurnIndicator.qml 3 +*/ + */ /*! |