Updated presenter example screen shots

This commit is contained in:
Tero Ahola 2012-04-11 13:36:33 +03:00
parent 7e0bb451a8
commit 4dfea05bdd
14 changed files with 16 additions and 16 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

View File

@ -3,8 +3,6 @@
\title Chart themes demo
\subtitle
\image demo_chartthemes_small.png
This demo shows the look and feel of the different built in themes for all supported chart types.
The background palette of the application is also customized according to the selected theme, to make the result
look harmonious.

View File

@ -1,16 +1,17 @@
/*!
\example examples/presenterchart
\title PresenterChart Example
\subtitle
\example examples/presenterchart
\title PresenterChart Example
\subtitle
The example shows how to create chart which presents the same set of data as line, scatter, spline and area charts.
ChartPresenter will switch between these four chart types every few seconds.
Please note this example does not use common data model. A use of common data model is documented here.[TODO]
The example shows how to create chart which presents the same set of data as line, scatter, spline and area charts.
ChartPresenter will switch between these four chart types every few seconds. Note: You can also use the
QAbstractItemModel related APIs to pass data for the different series types. See the \l {Model data example} for
more details.
\image presenterchart1.png
\image presenterchart2.png
\image presenterchart3.png
\image presenterchart4.png
\image examples_presenterchart1.png
\image examples_presenterchart2.png
\image examples_presenterchart3.png
\image examples_presenterchart4.png
We create simple ChartView class which derives form QChartView.
@ -24,8 +25,7 @@
\snippet ../examples/presenterchart/chartview.cpp 1
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,
it is wiser to use shared data model, as described here.[TODO]
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.
\snippet ../examples/presenterchart/chartview.cpp 2
@ -45,4 +45,4 @@
\snippet ../examples/presenterchart/chartview.cpp 6
*/
*/

View File

@ -36,7 +36,7 @@
<td><a href="examples-zoomlinechart.html"><img src="images/examples_zoomlinechart2.png" alt="zoomlinechart" /></a></td>
</tr>
<tr>
<td><a href="demos-chartthemes.html"><img src="images/demo_chartthemes_small.png" alt="charttheme" /></a></td>
<td><a href="demos-chartthemes.html"><img src="images/demo_chartthemes_blue_cerulean.png" width=514 alt="charttheme" /></a></td>
</tr>
</table>
</div>

View File

@ -27,6 +27,8 @@ int main(int argc, char *argv[])
QApplication a(argc, argv);
QMainWindow window;
QChart* chart = new QChart();
chart->axisX()->setNiceNumbers(true);
chart->axisY()->setNiceNumbers(true);
ChartView chartView(chart,&window);
chartView.setRenderHint(QPainter::Antialiasing);
chart->setAnimationOptions(QChart::AllAnimations);