-
Notifications
You must be signed in to change notification settings - Fork 0
3.05
Kimmo edited this page May 21, 2018
·
16 revisions
Explanation of the contents of a topic page @ Topic reference page
Objective: Using QML charts
- What is a chart?
- Chart types
- How to provide data to charts?
- How to add data dynamically?
- How to animate charts?
- How to interact with charts?
-
import QtCharts 2.0
-
ChartView type
-
ChartView displays different series types. Like PieSeries, LineSeries BarSeries
-
Series contain datapoints (PieSlice, XYPoint) that can be manipulated and displayed.
-
Dynamic add: append()
-
Modify existing: find()
K: QAbstractItemModel needs to be explained somewhere before probably!
- Model mappers enable using a data model derived from the QAbstractItemModel class as a data source for a chart
https://doc.qt.io/qt-5.10/qml-qtcharts-chartview.html