tutorials.qdoc
26 lines
| 957 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: | ||||
sauimone
|
r496 | \snippet ../examples/chartview/main.cpp 1 | ||
Michal Klocek
|
r330 | \image chartview_example.jpg | ||
Tero Ahola
|
r334 | To replace the line series with a pie series you use the dedicated QPieSeries class: | ||
sauimone
|
r496 | \snippet ../examples/chartview/main.cpp 3 | ||
Michal Klocek
|
r330 | \image chartview_example_pie.jpg | ||
Tero Ahola
|
r334 | |||
To use a scatter series you use QScatterSeries class: | ||||
sauimone
|
r496 | \snippet ../examples/chartview/main.cpp 4 | ||
Michal Klocek
|
r330 | \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: | ||||
sauimone
|
r496 | \snippet ../examples/chartview/main.cpp 5 | ||
Michal Klocek
|
r330 | \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: | ||||
sauimone
|
r496 | \snippet ../examples/chartview/main.cpp 2 | ||
Michal Klocek
|
r330 | \image chartview_example_theme.jpg | ||
*/ | ||||