##// END OF EJS Templates
Pie doc updates
Jani Honkonen -
r880:be90a995df75
parent child
Show More
@@ -0,0 +1,7
1 /*!
2 \example examples/piechartdrilldown
3 \title Piechart drilldown example
4 \subtitle
5
6 The example shows how to implement a piechart with drilldown effect.
7 */
@@ -1,9 +1,7
1 1 /*!
2 2 \example examples/piechart
3 \title LineChart Example
3 \title Piechart Example
4 4 \subtitle
5 5
6 The example shows how to create simple pie chart.
7
8 ...
9 */ No newline at end of file
6 The example shows how to create simple pie chart and do some customizations to a pie slice.
7 */
@@ -13,16 +13,17
13 13 <tr>
14 14 <td valign="top">
15 15 <ul>
16 <li><a href="examples-areachart.html">Area Chart example</a></li>
17 <li><a href="examples-barchart.html">Bar Chart example</a></li>
18 <li><a href="examples-linechart.html">Line Chart example</a></li>
19 <li><a href="examples-percentbarchart.html">Percent Bar Chart example</a></li>
20 <li><a href="examples-piechart.html">Pie Chart example</a></li>
21 <li><a href="examples-presenterchart.html">Presenter Chart example</a></li>
22 <li><a href="examples-scatterchart.html">Scatter Chart example</a></li>
23 <li><a href="examples-splinechart.html">Spline Chart example</a></li>
24 <li><a href="examples-stackedbarchart.html">Stacked Bar Chart example</a></li>
25 <li><a href="examples-stackedbarchartdrilldown.html">Stacked Bar Chart Drilldown example</a></li>
16 <li><a href="examples-areachart.html">Area chart example</a></li>
17 <li><a href="examples-barchart.html">Bar chart example</a></li>
18 <li><a href="examples-linechart.html">Line chart example</a></li>
19 <li><a href="examples-percentbarchart.html">Percent bar chart example</a></li>
20 <li><a href="examples-piechart.html">Pie chart example</a></li>
21 <li><a href="examples-piechartdrilldown.html">Pie chart drilldown example</a></li>
22 <li><a href="examples-presenterchart.html">Presenter chart example</a></li>
23 <li><a href="examples-scatterchart.html">Scatter chart example</a></li>
24 <li><a href="examples-splinechart.html">Spline chart example</a></li>
25 <li><a href="examples-stackedbarchart.html">Stacked bar chart example</a></li>
26 <li><a href="examples-stackedbarchartdrilldown.html">Stacked bar chart drilldown example</a></li>
26 27 <li><a href="examples-customcolors.html">Customizing colors example</a></li>
27 28 </ul>
28 29 </td>
@@ -46,20 +46,24 int main(int argc, char *argv[])
46 46 slice->setPen(QPen(Qt::darkGreen, 2));
47 47 slice->setBrush(Qt::green);
48 48 //![2]
49
49 50 //![3]
50 51 QChart* chart = new QChart();
51 52 chart->addSeries(series);
52 53 chart->setTitle("Simple piechart example");
53 54 //![3]
55
54 56 //![4]
55 57 QChartView* chartView = new QChartView(chart);
56 58 chartView->setRenderHint(QPainter::Antialiasing);
57 59 //![4]
60
58 61 //![5]
59 62 QMainWindow window;
60 63 window.setCentralWidget(chartView);
61 64 window.resize(400, 300);
62 65 window.show();
63 66 //![5]
67
64 68 return a.exec();
65 69 }
@@ -250,8 +250,6 qreal QPieSlice::labelArmLengthFactor() const
250 250 \fn void QPieSlice::changed()
251 251
252 252 This signal emitted when something has changed in the slice.
253
254 \sa QPieSeries::changed()
255 253 */
256 254
257 255 /*!
General Comments 0
You need to be logged in to leave comments. Login now