##// END OF EJS Templates
Documented customcolors example
Documented customcolors example

File last commit:

r496:c23f1472c851
r499:cdecb97c9343
Show More
example-linechart.qdoc
25 lines | 738 B | text/plain | TextLexer
/ doc / src / example-linechart.qdoc
Michal Klocek
Refactor documentation...
r330 /*!
\example example/linechart
\title LineChart Example
\subtitle
The example shows how to create simple line chart.
Michal Klocek
Add linechart example documentation
r370 \image linechart.png
To create line charts, QLineSeries instance is needed. Here we create two line series and we set the color and width of line.
sauimone
fixed example paths in doc
r496 \snippet ../examples/linechart/main.cpp 1
Michal Klocek
Add linechart example documentation
r370
Michal Klocek
Adds stream operator to qlinechart
r372 We add data to be shown to both series. We can use add() member function or use stream operator.
Michal Klocek
Add linechart example documentation
r370
sauimone
fixed example paths in doc
r496 \snippet ../examples/linechart/main.cpp 2
Michal Klocek
Add linechart example documentation
r370
In the end we create QChartView instance, set title, set anti-aliasing and add both series.
sauimone
fixed example paths in doc
r496 \snippet ../examples/linechart/main.cpp 3
Michal Klocek
Add linechart example documentation
r370
Chart is ready to be shown.
sauimone
fixed example paths in doc
r496 \snippet ../examples/linechart/main.cpp 4
Michal Klocek
Add linechart example documentation
r370
Michal Klocek
Refactor documentation...
r330 */