##// 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
hpiemodelmapper.qdocinc
16 lines | 641 B | text/plain | TextLexer
/ doc / src / hpiemodelmapper.qdocinc
HPieModelMapper allows you to use your own QAbstractItemModel derived model with data in rows as a data source
for a pie series. It is possible to use both QAbstractItemModel and PieSeries data API to manipulate data.
HPieModelMapper 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 columns). Each slice would contain a label from row 1 and a value from row 2.
\code
HPieModelMapper {
series: pieSeries
model: customModel
labelsRow: 1
valuesRow: 2
firstColumn: 1
columnCount: 4
}
\endcode