| qpiemodelmapper.cpp |
!
\class QPieModelMapper
\inmodule QtGraphs
\ingroup graphs_2D
\brief The QPieModelMapper is a model mapper for pie series.
Model mappers enable using a data model derived from the QAbstractItemModel
class as a data source for a graph. A model mapper is used to create
a connection between a data model and QPieSeries.
Both model and pie series properties can be used to manipulate the data. The
model mapper keeps the pie series and the data model in sync.
|
32029 |
- |
| qpiemodelmapper.h |
|
2484 |
- |
| qpiemodelmapper_p.h |
|
2745 |
- |
| qpieseries.cpp |
!
\class QPieSeries
\inmodule QtGraphs
\ingroup graphs_2D
\brief The QPieSeries class presents data in pie graphs.
A pie series consists of slices that are defined as QPieSlice objects.
The slices can have any values as the QPieSeries object calculates
the percentage of a slice compared with the sum of all slices in the series
to determine the actual size of the slice in the graph.
Pie size and position on the graph are controlled by using relative values
that range from 0.0 to 1.0.
These relate to the actual graph rectangle.
By default, the pie is defined as a full pie. A partial pie can be created
by setting a starting angle and angle span for the series.
A full pie is 360 degrees, where 0 is at 12 a'clock.
\sa QPieSlice
|
44349 |
- |
| qpieseries.h |
|
5442 |
- |
| qpieseries_p.h |
|
1830 |
- |
| qpieslice.cpp |
!
\class QPieSlice
\inmodule QtGraphs
\ingroup graphs_2D
\brief The QPieSlice class represents a single slice in a pie series.
A pie slice has a value and a label. When the slice is added to a pie series, the
QPieSeries object calculates the percentage of the slice compared with the sum of
all slices in the series to determine the actual size of the slice in the graph.
By default, the label is hidden. If it is visible, it can be either located outside
the slice and connected to it with an arm or centered inside the slice either
horizontally or in parallel with the tangential or normal of the slice's arc.
By default, the visual appearance of the slice is set by a theme, but the theme can be
overridden by specifying slice properties. However, if the theme is changed after the
slices are customized, all customization will be lost.
To enable user interaction with the pie graph, some basic signals are emitted when
users click pie slices or hover the mouse over them.
A pie slice can contain sub slices.
\sa QPieSeries
|
42520 |
- |
| qpieslice.h |
|
6451 |
- |
| qpieslice_p.h |
|
2558 |
- |