@@ -3,6 +3,16 | |||||
3 | \title QtCommercial Charts API |
|
3 | \title QtCommercial Charts API | |
4 | \keyword All Classes |
|
4 | \keyword All Classes | |
5 |
|
5 | |||
|
6 | Charts API is build on top of Qt Graphics View Framework. Charts can be displayed as QGrsphicsWidget using QChart class. However | |||
|
7 | there is also convenience class QChartView which is QWidget based. These lets quickly use QCharts as normal Qt widget. | |||
|
8 | Each chart type is represented by QSeries derived class. To create given chart type users have to use instace of releted sereis class and add it to QChart/QChartView instance. | |||
|
9 | \code | |||
|
10 | QLineSeries* series = new QLineSeries(); | |||
|
11 | series->add(0, 6); | |||
|
12 | series->add(2, 4); | |||
|
13 | ... | |||
|
14 | chartView->addSeries(series); | |||
|
15 | \endcode | |||
6 |
|
16 | |||
7 | \image class_diagram.png |
|
17 | \image class_diagram.png | |
8 | \raw HTML |
|
18 | \raw HTML |
General Comments 0
You need to be logged in to leave comments.
Login now