tutorials.qdoc
26 lines
| 952 B
| text/plain
|
TextLexer
Michal Klocek
|
r330 | /*! | ||
\page tutorials.html | ||||
\title Tutorials | ||||
\keyword Tutorials | ||||
For example, to create a chart with line series using a widget based application: | ||||
\snippet ../example/chartview/main.cpp 1 | ||||
\image chartview_example.jpg | ||||
Tero Ahola
|
r334 | To replace the line series with a pie series you use the dedicated QPieSeries class: | ||
Michal Klocek
|
r330 | \snippet ../example/chartview/main.cpp 3 | ||
\image chartview_example_pie.jpg | ||||
Tero Ahola
|
r334 | |||
To use a scatter series you use QScatterSeries class: | ||||
Michal Klocek
|
r330 | \snippet ../example/chartview/main.cpp 4 | ||
\image chartview_example_scatter.jpg | ||||
Tero Ahola
|
r334 | |||
And to show a bar series you use one of the bar series classes, for example QBarChartSeries: | ||||
Michal Klocek
|
r330 | \snippet ../example/chartview/main.cpp 5 | ||
\image chartview_example_bar.jpg | ||||
Tero Ahola
|
r334 | If you need to give a more professional touch to your chart you can switch from the default | ||
theme to one of the other themes: | ||||
Michal Klocek
|
r330 | \snippet ../example/chartview/main.cpp 2 | ||
\image chartview_example_theme.jpg | ||||
*/ | ||||