diff options
Diffstat (limited to 'src/charts/doc/src/examples-qmlf1legends.qdoc')
-rw-r--r-- | src/charts/doc/src/examples-qmlf1legends.qdoc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/charts/doc/src/examples-qmlf1legends.qdoc b/src/charts/doc/src/examples-qmlf1legends.qdoc new file mode 100644 index 00000000..da7a73b2 --- /dev/null +++ b/src/charts/doc/src/examples-qmlf1legends.qdoc @@ -0,0 +1,23 @@ +/*! + \example qmlf1legends + \title Qml F1 Legends + \ingroup qtcharts_examples + + \image examples_qmlf1legends.png + + \brief This application demonstrates how to use XmlListModel as a datasource for a Chart. + + Let's define an empty ChartView first: + \snippet qmlf1legends/qml/qmlf1legends/main.qml 1 + + Our XmlListModel uses hard-coded test data. In a real application the data source would be a + timing system. + \snippet qmlf1legends/qml/qmlf1legends/SpeedsXml.qml 1 + \dots + \snippet qmlf1legends/qml/qmlf1legends/SpeedsXml.qml 2 + \snippet qmlf1legends/qml/qmlf1legends/main.qml 2 + + The data is parsed with a timer. The line series representing each driver are created on the + fly. + \snippet qmlf1legends/qml/qmlf1legends/main.qml 3 +*/ |