##// END OF EJS Templates
Fix for hiding overloaded virtual functions...
Fix for hiding overloaded virtual functions ChartAxisElement::setGeometry(QRectF, QRectF) hided virtual function with the same name from QGraphicsLayoutItem. Causes around 400 warnings. Change-Id: I4474e4879058e2b785e72897ed47dea0f2b24cd1 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>

File last commit:

r2456:4278a56d8f51
r2572:fd6a3d4befc5
Show More
examples-linechart.qdoc
30 lines | 980 B | text/plain | TextLexer
/ doc / src / examples-linechart.qdoc
/*!
\example examples/linechart
\title LineChart Example
\subtitle
The example shows how to create simple line chart.
\image examples_linechart.png
To create line chart, QLineSeries instance is needed. Let's create one.
\snippet ../examples/linechart/main.cpp 1
Then we add data to series. We can use append() member function or use stream operator.
\snippet ../examples/linechart/main.cpp 2
To present the data on the chart we need QChart instance. We add the series to it, create the default axes and set the title of the chart.
\snippet ../examples/linechart/main.cpp 3
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.
\snippet ../examples/linechart/main.cpp 4
Chart is ready to be shown.
\snippet ../examples/linechart/main.cpp 5
*/