@@ -52,7 +52,9 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
52 | 52 | \qmlclass PieSeries QPieSeries |
|
53 | 53 | |
|
54 | 54 | The following QML shows how to create a simple pie chart. |
|
55 | ||
|
55 | 56 | \snippet ../demos/qmlchart/qml/qmlchart/View1.qml 1 |
|
57 | ||
|
56 | 58 | \beginfloatleft |
|
57 | 59 | \image demos_qmlchart1.png |
|
58 | 60 | \endfloat |
@@ -62,7 +64,9 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
62 | 64 | /*! |
|
63 | 65 | \property QPieSeries::horizontalPosition |
|
64 | 66 | \brief Defines the horizontal position of the pie. |
|
67 | ||
|
65 | 68 | The value is a relative value to the chart rectangle where: |
|
69 | ||
|
66 | 70 | \list |
|
67 | 71 | \o 0.0 is the absolute left. |
|
68 | 72 | \o 1.0 is the absolute right. |
@@ -70,9 +74,14 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
70 | 74 | Default value is 0.5 (center). |
|
71 | 75 | \sa verticalPosition |
|
72 | 76 | */ |
|
77 | ||
|
73 | 78 | /*! |
|
74 | 79 | \qmlproperty real PieSeries::horizontalPosition |
|
75 | Defines the horizontal position of the pie. The value is a relative value to the chart rectangle where: | |
|
80 | ||
|
81 | Defines the horizontal position of the pie. | |
|
82 | ||
|
83 | The value is a relative value to the chart rectangle where: | |
|
84 | ||
|
76 | 85 | \list |
|
77 | 86 | \o 0.0 is the absolute left. |
|
78 | 87 | \o 1.0 is the absolute right. |
@@ -84,7 +93,9 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
84 | 93 | /*! |
|
85 | 94 | \property QPieSeries::verticalPosition |
|
86 | 95 | \brief Defines the vertical position of the pie. |
|
96 | ||
|
87 | 97 | The value is a relative value to the chart rectangle where: |
|
98 | ||
|
88 | 99 | \list |
|
89 | 100 | \o 0.0 is the absolute top. |
|
90 | 101 | \o 1.0 is the absolute bottom. |
@@ -92,9 +103,14 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
92 | 103 | Default value is 0.5 (center). |
|
93 | 104 | \sa horizontalPosition |
|
94 | 105 | */ |
|
106 | ||
|
95 | 107 | /*! |
|
96 | 108 | \qmlproperty real PieSeries::verticalPosition |
|
97 | Defines the vertical position of the pie. The value is a relative value to the chart rectangle where: | |
|
109 | ||
|
110 | Defines the vertical position of the pie. | |
|
111 | ||
|
112 | The value is a relative value to the chart rectangle where: | |
|
113 | ||
|
98 | 114 | \list |
|
99 | 115 | \o 0.0 is the absolute top. |
|
100 | 116 | \o 1.0 is the absolute bottom. |
@@ -118,6 +134,21 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
118 | 134 | */ |
|
119 | 135 | |
|
120 | 136 | /*! |
|
137 | \qmlproperty real PieSeries::size | |
|
138 | ||
|
139 | Defines the pie size. | |
|
140 | ||
|
141 | The value is a relative value to the chart rectangle where: | |
|
142 | ||
|
143 | \list | |
|
144 | \o 0.0 is the minimum size (pie not drawn). | |
|
145 | \o 1.0 is the maximum size that can fit the chart. | |
|
146 | \endlist | |
|
147 | ||
|
148 | Default value is 0.7. | |
|
149 | */ | |
|
150 | ||
|
151 | /*! | |
|
121 | 152 | \property QPieSeries::startAngle |
|
122 | 153 | \brief Defines the starting angle of the pie. |
|
123 | 154 | |
@@ -127,6 +158,16 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
127 | 158 | */ |
|
128 | 159 | |
|
129 | 160 | /*! |
|
161 | \qmlproperty real PieSeries::startAngle | |
|
162 | ||
|
163 | Defines the starting angle of the pie. | |
|
164 | ||
|
165 | Full pie is 360 degrees where 0 degrees is at 12 a'clock. | |
|
166 | ||
|
167 | Default is value is 0. | |
|
168 | */ | |
|
169 | ||
|
170 | /*! | |
|
130 | 171 | \property QPieSeries::endAngle |
|
131 | 172 | \brief Defines the ending angle of the pie. |
|
132 | 173 | |
@@ -136,12 +177,28 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
136 | 177 | */ |
|
137 | 178 | |
|
138 | 179 | /*! |
|
180 | \qmlproperty real PieSeries::endAngle | |
|
181 | ||
|
182 | Defines the ending angle of the pie. | |
|
183 | ||
|
184 | Full pie is 360 degrees where 0 degrees is at 12 a'clock. | |
|
185 | ||
|
186 | Default is value is 360. | |
|
187 | */ | |
|
188 | ||
|
189 | /*! | |
|
139 | 190 | \property QPieSeries::count |
|
140 | 191 | |
|
141 | 192 | Number of slices in the series. |
|
142 | 193 | */ |
|
143 | 194 | |
|
144 | 195 | /*! |
|
196 | \qmlproperty int PieSeries::count | |
|
197 | ||
|
198 | Number of slices in the series. | |
|
199 | */ | |
|
200 | ||
|
201 | /*! | |
|
145 | 202 | \fn void QPieSeries::countChanged() |
|
146 | 203 | |
|
147 | 204 | Emitted when the slice count has changed. |
@@ -158,6 +215,14 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
158 | 215 | */ |
|
159 | 216 | |
|
160 | 217 | /*! |
|
218 | \qmlproperty real PieSeries::sum | |
|
219 | ||
|
220 | Sum of all slices. | |
|
221 | ||
|
222 | The series keeps track of the sum of all slices it holds. | |
|
223 | */ | |
|
224 | ||
|
225 | /*! | |
|
161 | 226 | \fn void QPieSeries::sumChanged() |
|
162 | 227 | |
|
163 | 228 | Emitted when the sum of all slices has changed. |
General Comments 0
You need to be logged in to leave comments.
Login now