Reference documentation
Public Slots | Public Member Functions | List of all members
AbstractItemView Class Referenceabstract

The AbstractItemView class provides an abstract base for every item view. More...

Inheritance diagram for AbstractItemView:
AbstractChart AbstractTree GraphView AxisChart PieChart RadialTree VerticalTree LinearChart RadialChart PieChart3D HorizontalTree RadarChart

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...
 

Detailed Description

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.

Member Function Documentation

QPainterPath itemPath ( const QModelIndex &  index) const
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.

QRectF itemRect ( const QModelIndex &  index) const
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.

QRectF itemRect ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
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.

void updateValues ( )
pure virtualslot

Updates the items in the item view.

This function must be called whenever the model has changed.

Implemented in AbstractTree.