##// 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 \example examples/piechart
2 \example examples/piechart
3 \title LineChart Example
3 \title Piechart Example
4 \subtitle
4 \subtitle
5
5
6 The example shows how to create simple pie chart.
6 The example shows how to create simple pie chart and do some customizations to a pie slice.
7
7 */
8 ...
9 */ No newline at end of file
@@ -13,16 +13,17
13 <tr>
13 <tr>
14 <td valign="top">
14 <td valign="top">
15 <ul>
15 <ul>
16 <li><a href="examples-areachart.html">Area Chart 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>
17 <li><a href="examples-barchart.html">Bar chart example</a></li>
18 <li><a href="examples-linechart.html">Line 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>
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>
20 <li><a href="examples-piechart.html">Pie chart example</a></li>
21 <li><a href="examples-presenterchart.html">Presenter Chart example</a></li>
21 <li><a href="examples-piechartdrilldown.html">Pie chart drilldown example</a></li>
22 <li><a href="examples-scatterchart.html">Scatter Chart example</a></li>
22 <li><a href="examples-presenterchart.html">Presenter chart example</a></li>
23 <li><a href="examples-splinechart.html">Spline Chart example</a></li>
23 <li><a href="examples-scatterchart.html">Scatter chart example</a></li>
24 <li><a href="examples-stackedbarchart.html">Stacked Bar Chart example</a></li>
24 <li><a href="examples-splinechart.html">Spline chart example</a></li>
25 <li><a href="examples-stackedbarchartdrilldown.html">Stacked Bar Chart Drilldown 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 <li><a href="examples-customcolors.html">Customizing colors example</a></li>
27 <li><a href="examples-customcolors.html">Customizing colors example</a></li>
27 </ul>
28 </ul>
28 </td>
29 </td>
@@ -46,20 +46,24 int main(int argc, char *argv[])
46 slice->setPen(QPen(Qt::darkGreen, 2));
46 slice->setPen(QPen(Qt::darkGreen, 2));
47 slice->setBrush(Qt::green);
47 slice->setBrush(Qt::green);
48 //![2]
48 //![2]
49
49 //![3]
50 //![3]
50 QChart* chart = new QChart();
51 QChart* chart = new QChart();
51 chart->addSeries(series);
52 chart->addSeries(series);
52 chart->setTitle("Simple piechart example");
53 chart->setTitle("Simple piechart example");
53 //![3]
54 //![3]
55
54 //![4]
56 //![4]
55 QChartView* chartView = new QChartView(chart);
57 QChartView* chartView = new QChartView(chart);
56 chartView->setRenderHint(QPainter::Antialiasing);
58 chartView->setRenderHint(QPainter::Antialiasing);
57 //![4]
59 //![4]
60
58 //![5]
61 //![5]
59 QMainWindow window;
62 QMainWindow window;
60 window.setCentralWidget(chartView);
63 window.setCentralWidget(chartView);
61 window.resize(400, 300);
64 window.resize(400, 300);
62 window.show();
65 window.show();
63 //![5]
66 //![5]
67
64 return a.exec();
68 return a.exec();
65 }
69 }
@@ -250,8 +250,6 qreal QPieSlice::labelArmLengthFactor() const
250 \fn void QPieSlice::changed()
250 \fn void QPieSlice::changed()
251
251
252 This signal emitted when something has changed in the slice.
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