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>

Part of the QtGui module.

Inherits QStyleOption.

Public Types

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

ConstantValueDescription
QStyleOptionViewItem::Left0On the left of the text.
QStyleOptionViewItem::Right1On the right of the text.
QStyleOptionViewItem::Top2Above the text.
QStyleOptionViewItem::Bottom3Below the text.

See also decorationPosition.


Property Documentation

decorationAlignment : const Qt::Alignment

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

decorationPosition : const Position

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

See also Position.

decorationSize : const QSize

This property holds the size ofthe decoration for the item.

See also Size.

displayAlignment : const Qt::Alignment

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

font : const QFont

This property holds the font used for the item.

See also QFont.


Member Function Documentation

QStyleOptionViewItem::QStyleOptionViewItem ()

Constructs a QStyleOptionViewItem. The members variables are initialized to default values.

QStyleOptionViewItem::QStyleOptionViewItem ( const QStyleOptionViewItem & other )


Copyright © 2005 Trolltech Trademarks
Qt 4.0.0-b2