##// END OF EJS Templates
Fix Charts documentation...
Fix Charts documentation The documentation structure is changed so that it can be generated with both Qt5 and Qt4. Also the erroneous VBarModelMapper is removed from VBoxPlotModelMapper documentation. Task-number: QTRD-2492, QTRD-2495 Change-Id: I45028915ca55f6ff1170db58518a8f08ac4158fb Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>

File last commit:

r2639:2ce3423968b5
r2639:2ce3423968b5
Show More
vpiemodelmapper.qdocinc
16 lines | 647 B | text/plain | TextLexer
/ doc / src / vpiemodelmapper.qdocinc
VPieModelMapper allows you to use your own QAbstractItemModel derived model with data in columns as a data source
for a pie series. It is possible to use both QAbstractItemModel and PieSeries data API to manipulate data.
VPieModelMapper keeps the Pie and the model in sync.
The following QML example would create a pie series with four slices (assuming the model has at least five rows).
Each slice would contain a label from column 1 and a value from column 2.
\code
VPieModelMapper {
series: pieSeries
model: customModel
labelsColumn: 1
valuesColumn: 2
firstRow: 1
rowCount: 4
}
\endcode