##// END OF EJS Templates
Polishing on examples...
Polishing on examples Change-Id: I1cf77318e5551a79bfe31983bb2f770c80f9b976 Reviewed-by: Mika Salmela <mika.salmela@digia.com>

File last commit:

r1647:35c35dbacb1e
r2536:c9bd72facaf8
Show More
examples-customchart.qdoc
26 lines | 921 B | text/plain | TextLexer
/ doc / src / examples-customchart.qdoc
Jani Honkonen
Add all examples to docs
r919 /*!
Tero Ahola
Tuned and documented custom chart example
r942 \example examples/customchart
\title Custom chart example
\subtitle
Jani Honkonen
Add all examples to docs
r919
Tero Ahola
Tuned and documented custom chart example
r942 This example shows how to customize the appearance of the different elements on a chart.
Tero Ahola
Documentation front page
r979 \image examples_customchart.png
Tero Ahola
Tuned and documented custom chart example
r942
We begin by creating a simple line series and a chart object.
\snippet ../examples/customchart/main.cpp 1
Let the customization begin. First we customize the series and the chart's title and background.
\snippet ../examples/customchart/main.cpp 2
Then we customize the axes.
\snippet ../examples/customchart/main.cpp 3
Marek Rosa
Customchart example updated
r1647 And the axis label values and ranges. Once the axes are ready we set them to be used by the chart.
Tero Ahola
Tuned and documented custom chart example
r942 \snippet ../examples/customchart/main.cpp 4
Finally we create a view containing the chart.
\snippet ../examples/customchart/main.cpp 5
Now we are ready to show the chart on a main window.
\snippet ../examples/customchart/main.cpp 6
Jani Honkonen
Add all examples to docs
r919 */