|
1 | NO CONTENT: new file 100644, binary diff hidden |
|
1 | NO CONTENT: new file 100644, binary diff hidden |
|
1 | NO CONTENT: new file 100644, binary diff hidden |
|
1 | NO CONTENT: new file 100644, binary diff hidden |
@@ -3,8 +3,6 | |||
|
3 | 3 | \title Chart themes demo |
|
4 | 4 | \subtitle |
|
5 | 5 | |
|
6 | \image demo_chartthemes_small.png | |
|
7 | ||
|
8 | 6 | This demo shows the look and feel of the different built in themes for all supported chart types. |
|
9 | 7 | The background palette of the application is also customized according to the selected theme, to make the result |
|
10 | 8 | look harmonious. |
@@ -4,13 +4,14 | |||
|
4 | 4 |
|
|
5 | 5 | |
|
6 | 6 |
|
|
7 |
|
|
|
8 | Please note this example does not use common data model. A use of common data model is documented here.[TODO] | |
|
7 | ChartPresenter will switch between these four chart types every few seconds. Note: You can also use the | |
|
8 | QAbstractItemModel related APIs to pass data for the different series types. See the \l {Model data example} for | |
|
9 | more details. | |
|
9 | 10 | |
|
10 | \image presenterchart1.png | |
|
11 | \image presenterchart2.png | |
|
12 | \image presenterchart3.png | |
|
13 | \image presenterchart4.png | |
|
11 | \image examples_presenterchart1.png | |
|
12 | \image examples_presenterchart2.png | |
|
13 | \image examples_presenterchart3.png | |
|
14 | \image examples_presenterchart4.png | |
|
14 | 15 | |
|
15 | 16 | We create simple ChartView class which derives form QChartView. |
|
16 | 17 | |
@@ -24,8 +25,7 | |||
|
24 | 25 | |
|
25 | 26 | \snippet ../examples/presenterchart/chartview.cpp 1 |
|
26 | 27 | |
|
27 |
We add data to three series. Please note area chart is going to use QLineSeries as the upper line. We can use add() member function. |
|
|
28 | it is wiser to use shared data model, as described here.[TODO] | |
|
28 | We add data to three series. Please note area chart is going to use QLineSeries as the upper line. We can use add() member function. | |
|
29 | 29 | |
|
30 | 30 | \snippet ../examples/presenterchart/chartview.cpp 2 |
|
31 | 31 |
@@ -36,7 +36,7 | |||
|
36 | 36 | <td><a href="examples-zoomlinechart.html"><img src="images/examples_zoomlinechart2.png" alt="zoomlinechart" /></a></td> |
|
37 | 37 | </tr> |
|
38 | 38 | <tr> |
|
39 |
<td><a href="demos-chartthemes.html"><img src="images/demo_chartthemes_ |
|
|
39 | <td><a href="demos-chartthemes.html"><img src="images/demo_chartthemes_blue_cerulean.png" width=514 alt="charttheme" /></a></td> | |
|
40 | 40 | </tr> |
|
41 | 41 | </table> |
|
42 | 42 | </div> |
@@ -27,6 +27,8 int main(int argc, char *argv[]) | |||
|
27 | 27 | QApplication a(argc, argv); |
|
28 | 28 | QMainWindow window; |
|
29 | 29 | QChart* chart = new QChart(); |
|
30 | chart->axisX()->setNiceNumbers(true); | |
|
31 | chart->axisY()->setNiceNumbers(true); | |
|
30 | 32 | ChartView chartView(chart,&window); |
|
31 | 33 | chartView.setRenderHint(QPainter::Antialiasing); |
|
32 | 34 | chart->setAnimationOptions(QChart::AllAnimations); |
|
1 | NO CONTENT: file was removed, binary diff hidden |
|
1 | NO CONTENT: file was removed, binary diff hidden |
|
1 | NO CONTENT: file was removed, binary diff hidden |
|
1 | NO CONTENT: file was removed, binary diff hidden |
|
1 | NO CONTENT: file was removed, binary diff hidden |
|
1 | NO CONTENT: file was removed, binary diff hidden |
General Comments 0
You need to be logged in to leave comments.
Login now