##// END OF EJS Templates
Updated presenter example screen shots
Tero Ahola -
r983:4dfea05bdd57
parent child
Show More
1 NO CONTENT: new file 100644, binary diff hidden
NO CONTENT: new file 100644, binary diff hidden
1 NO CONTENT: new file 100644, binary diff hidden
NO CONTENT: new file 100644, binary diff hidden
1 NO CONTENT: new file 100644, binary diff hidden
NO CONTENT: new file 100644, binary diff hidden
1 NO CONTENT: new file 100644, binary diff hidden
NO CONTENT: new file 100644, binary diff hidden
@@ -3,8 +3,6
3 \title Chart themes demo
3 \title Chart themes demo
4 \subtitle
4 \subtitle
5
5
6 \image demo_chartthemes_small.png
7
8 This demo shows the look and feel of the different built in themes for all supported chart types.
6 This demo shows the look and feel of the different built in themes for all supported chart types.
9 The background palette of the application is also customized according to the selected theme, to make the result
7 The background palette of the application is also customized according to the selected theme, to make the result
10 look harmonious.
8 look harmonious.
@@ -1,16 +1,17
1 /*!
1 /*!
2 \example examples/presenterchart
2 \example examples/presenterchart
3 \title PresenterChart Example
3 \title PresenterChart Example
4 \subtitle
4 \subtitle
5
5
6 The example shows how to create chart which presents the same set of data as line, scatter, spline and area charts.
6 The example shows how to create chart which presents the same set of data as line, scatter, spline and area charts.
7 ChartPresenter will switch between these four chart types every few seconds.
7 ChartPresenter will switch between these four chart types every few seconds. Note: You can also use the
8 Please note this example does not use common data model. A use of common data model is documented here.[TODO]
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 examples_presenterchart1.png
11 \image presenterchart2.png
12 \image examples_presenterchart2.png
12 \image presenterchart3.png
13 \image examples_presenterchart3.png
13 \image presenterchart4.png
14 \image examples_presenterchart4.png
14
15
15 We create simple ChartView class which derives form QChartView.
16 We create simple ChartView class which derives form QChartView.
16
17
@@ -24,8 +25,7
24
25
25 \snippet ../examples/presenterchart/chartview.cpp 1
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. If data set is large,
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.
28 it is wiser to use shared data model, as described here.[TODO]
29
29
30 \snippet ../examples/presenterchart/chartview.cpp 2
30 \snippet ../examples/presenterchart/chartview.cpp 2
31
31
@@ -45,4 +45,4
45
45
46 \snippet ../examples/presenterchart/chartview.cpp 6
46 \snippet ../examples/presenterchart/chartview.cpp 6
47
47
48 */ No newline at end of file
48 */
@@ -36,7 +36,7
36 <td><a href="examples-zoomlinechart.html"><img src="images/examples_zoomlinechart2.png" alt="zoomlinechart" /></a></td>
36 <td><a href="examples-zoomlinechart.html"><img src="images/examples_zoomlinechart2.png" alt="zoomlinechart" /></a></td>
37 </tr>
37 </tr>
38 <tr>
38 <tr>
39 <td><a href="demos-chartthemes.html"><img src="images/demo_chartthemes_small.png" alt="charttheme" /></a></td>
39 <td><a href="demos-chartthemes.html"><img src="images/demo_chartthemes_blue_cerulean.png" width=514 alt="charttheme" /></a></td>
40 </tr>
40 </tr>
41 </table>
41 </table>
42 </div>
42 </div>
@@ -27,6 +27,8 int main(int argc, char *argv[])
27 QApplication a(argc, argv);
27 QApplication a(argc, argv);
28 QMainWindow window;
28 QMainWindow window;
29 QChart* chart = new QChart();
29 QChart* chart = new QChart();
30 chart->axisX()->setNiceNumbers(true);
31 chart->axisY()->setNiceNumbers(true);
30 ChartView chartView(chart,&window);
32 ChartView chartView(chart,&window);
31 chartView.setRenderHint(QPainter::Antialiasing);
33 chartView.setRenderHint(QPainter::Antialiasing);
32 chart->setAnimationOptions(QChart::AllAnimations);
34 chart->setAnimationOptions(QChart::AllAnimations);
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
General Comments 0
You need to be logged in to leave comments. Login now