Reference documentation
|
The AbstractItemView class provides an abstract base for every item view. More...
Public Slots | |
virtual void | updateValues ()=0 |
Updates the items in the item view. More... | |
Public Member Functions | |
AbstractItemView (QWidget *parent=0) | |
Constructs an abstract item view with the given parent. | |
virtual QPainterPath | itemPath (const QModelIndex &index) const =0 |
Defines the outer bounds of the item as a QPainterPath . More... | |
virtual QRectF | itemRect (const QModelIndex &index) const |
Defines the outer bounds of the item as a rectangle. More... | |
virtual QRectF | itemRect (int row, int column, const QModelIndex &parent=QModelIndex()) const |
This function overloads itemRect(). More... | |
The AbstractItemView class provides an abstract base for every item view.
The AbstractItemView class provides the basic functionality for every item view. It is a abstract class and cannot be instancied itself. AbstractItemView provides a standard interface based on QAbstractItemView
. It reimplements basic logic for interoperating with models through the signals and slots mechanism.
See Qt reference documentation for more detail on QAbstractItemView
.
|
pure virtual |
Defines the outer bounds of the item as a QPainterPath
.
All painting must be restricted to inside an item's bounding QPainterPath
.
Implemented in AbstractTree, PieChart, GraphView, RadarChart, RadialChart, and AbstractChart.
|
virtual |
Defines the outer bounds of the item as a rectangle.
All painting must be restricted to inside an item's bounding rect. Although the item's shape can be arbitrary, the bounding rect is always rectangular.
Reimplemented in AbstractTree, LinearChart, RadarChart, and RadialChart.
|
virtual |
This function overloads itemRect().
Defines the outer bounds of the item as a rectangle. All painting must be restricted to inside an item's bounding rect. Although the item's shape can be arbitrary, the bounding rect is always rectangular.
Reimplemented in LinearChart.
|
pure virtualslot |
Updates the items in the item view.
This function must be called whenever the model has changed.
Implemented in AbstractTree.