Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

QStyleOptionViewItem Class Reference

The QStyleOptionViewItem class is used to describe the parameters used to draw an item in a view widget. More...

#include <QStyleOptionViewItem>

Inherits QStyleOption.

List of all members.

Public Types

Read-Only Properties

Public Functions


Detailed Description

The QStyleOptionViewItem class is used to describe the parameters used to draw an item in a view widget.

The QStyleOptionViewItem structure is used by Qt's Model/View classes to draw their items.

See also Model/View Programming.


Member Type Documentation

enum QStyleOptionViewItem::Position

This enum describes the position of the item's decoration.

QStyleOptionViewItem::Left 
QStyleOptionViewItem::Right 
QStyleOptionViewItem::Top 
QStyleOptionViewItem::Bottom 

See also decorationPosition.

enum QStyleOptionViewItem::Size

This enum describes the size of the item's decoration size.

QStyleOptionViewItem::Small 
QStyleOptionViewItem::Large 

See also decorationSize.


Property Documentation

decorationAlignment : int

This property holds the alignment of the decoration for the item.

decorationPosition : Position

This property holds the position of the decoration for the item.

See also Position.

decorationSize : Size

This property holds the size ofthe decoration for the item.

See also Size.

displayAlignment : int

This property holds the alignment of the display value for the item.


Member Function Documentation

QStyleOptionViewItem::QStyleOptionViewItem ( int version )

Construct a QStyleOptionViewItem with version version.

The values of the structure are set to zero. It is the responsibility of the developer to set them to the correct values.


Copyright © 2004 Trolltech. Trademarks
Qt 4.0.0-tp1