##// END OF EJS Templates
demoLauncher should now work on all platforms
demoLauncher should now work on all platforms

File last commit:

r2012:788ce28a3d66
r2234:db665d87eeda
Show More
examples-scatterchart.qdoc
27 lines | 933 B | text/plain | TextLexer
/ doc / src / examples-scatterchart.qdoc
Michal Klocek
Update scatter example and docs
r471 /*!
Tero Ahola
Fixing example documentation
r500 \example examples/scatterchart
Michal Klocek
Update scatter example and docs
r471 \title ScatterChart Example
\subtitle
The example shows how to create simple scatter chart.
Tero Ahola
Documentation front page
r979 \image examples_scatterchart.png
Michal Klocek
Update scatter example and docs
r471
To create scatter charts, QScatterSeries instance is needed. Here we create scatter series instance and we set the type, color and width of outline for scatter points.
Tero Ahola
Fixed presenter and scatter examples and their documentation.
r1015 \snippet ../examples/scatterchart/chartview.cpp 1
Michal Klocek
Update scatter example and docs
r471
Marek Rosa
Docs fix: removed duplicated word, function is named append not add
r2012 We add data to be shown. We can use append() member function or use stream operator.
Michal Klocek
Update scatter example and docs
r471
Tero Ahola
Fixed presenter and scatter examples and their documentation.
r1015 \snippet ../examples/scatterchart/chartview.cpp 2
Michal Klocek
Update scatter example and docs
r471
Tero Ahola
Fixed presenter and scatter examples and their documentation.
r1015 In the end we enable anti-aliasing, set the chart title and add the scatter series onto the chart. We also disable
drop shadow, because it would not look good on an application with only chart view shown.
Michal Klocek
Update scatter example and docs
r471
Tero Ahola
Fixed presenter and scatter examples and their documentation.
r1015 \snippet ../examples/scatterchart/chartview.cpp 3
Michal Klocek
Update scatter example and docs
r471
Chart is ready to be shown.
Tero Ahola
Fixed presenter and scatter examples and their documentation.
r1015 \snippet ../examples/scatterchart/main.cpp 4
Michal Klocek
Update scatter example and docs
r471
Tero Ahola
Documentation front page
r979 */