##// END OF EJS Templates
Fix trivial problems with examples and docs
Fix trivial problems with examples and docs

File last commit:

r2012:788ce28a3d66
r2442:7fe25bf61dfb
Show More
examples-linechart.qdoc
30 lines | 979 B | text/plain | TextLexer
/ doc / src / examples-linechart.qdoc
Michal Klocek
Refactor documentation...
r330 /*!
Tero Ahola
Fixing example documentation
r500 \example examples/linechart
Michal Klocek
Refactor documentation...
r330 \title LineChart Example
\subtitle
The example shows how to create simple line chart.
Tero Ahola
Documentation front page
r979 \image examples_linechart.png
Michal Klocek
Add linechart example documentation
r370
Marek Rosa
Update line and spline chart examples
r902 To create line chart, QLineSeries instance is needed. Let's create one.
Michal Klocek
Add linechart example documentation
r370
sauimone
fixed example paths in doc
r496 \snippet ../examples/linechart/main.cpp 1
Michal Klocek
Add linechart example documentation
r370
Marek Rosa
Docs fix: removed duplicated word, function is named append not add
r2012 Then we add data to series. We can use append() 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
Marek Rosa
Some docs fixes
r1630 To present the data on the char we need QChart instance. We add the series to it, create the default axes and set the title of the chart.
Michal Klocek
Add linechart example documentation
r370
sauimone
fixed example paths in doc
r496 \snippet ../examples/linechart/main.cpp 3
Marek Rosa
Update line and spline chart examples
r902
Then we create a QChartView object with QChart as a parameter. This way we don't need to create QGraphicsView scene ourselves. We also set the Antialiasing on to have the rendered lines look nicer.
Michal Klocek
Add linechart example documentation
r370
sauimone
fixed example paths in doc
r496 \snippet ../examples/linechart/main.cpp 4
Marek Rosa
Update line and spline chart examples
r902
Chart is ready to be shown.
\snippet ../examples/linechart/main.cpp 5
Michal Klocek
Add linechart example documentation
r370
Marek Rosa
Update line and spline chart examples
r902 */