Home · All Classes · Main Classes · Grouped Classes · Modules · Functions

QStyleOptionQ3ListViewItem Class Reference
[QtGui module]

The QStyleOptionQ3ListViewItem class is used to describe an item drawn in a Q3ListView. More...

#include <QStyleOptionQ3ListViewItem>

Inherits QStyleOption.

Public Types

Public Functions

Public Variables

Static Public Members


Detailed Description

The QStyleOptionQ3ListViewItem class is used to describe an item drawn in a Q3ListView.

This is used by the compatibility Q3ListView to draw its items. It should be avoided for new classes.

See also Q3ListView and Q3ListViewItem.


Member Type Documentation

enum QStyleOptionQ3ListViewItem::Q3ListViewItemFeature
flags QStyleOptionQ3ListViewItem::Q3ListViewItemFeatures

This enum describes the features a list view item can have.

ConstantValueDescription
QStyleOptionQ3ListViewItem::None0x00A standard item.
QStyleOptionQ3ListViewItem::Expandable0x01The item has children that can be shown.
QStyleOptionQ3ListViewItem::MultiLine0x02The item is more than one line tall.
QStyleOptionQ3ListViewItem::Visible0x04The item is visible.
QStyleOptionQ3ListViewItem::ParentControl0x08The item's parent is a type of item control (Q3CheckListItem::Controller).

The Q3ListViewItemFeatures type is a typedef for QFlags<Q3ListViewItemFeature>. It stores an OR combination of Q3ListViewItemFeature values.

See also features, Q3ListViewItem::isVisible(), Q3ListViewItem::multiLinesEnabled(), and Q3ListViewItem::isExpandable().


Member Function Documentation

QStyleOptionQ3ListViewItem::QStyleOptionQ3ListViewItem ()

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

QStyleOptionQ3ListViewItem::QStyleOptionQ3ListViewItem ( const QStyleOptionQ3ListViewItem & other )

Constructs a copy of the other style option.


Member Variable Documentation

const int QStyleOptionQ3ListViewItem::Type

Equals SO_Q3ListViewItem.

const int QStyleOptionQ3ListViewItem::Version

Equals 1.

int QStyleOptionQ3ListViewItem::childCount

This variable holds the number of children the item has.

Q3ListViewItemFeatures QStyleOptionQ3ListViewItem::features

This variable holds the features for this item.

This variable is a bitwise OR of the features of the item.

See also Q3ListViewItemFeature.

int QStyleOptionQ3ListViewItem::height

This variable holds the height of the item.

This doesn't include the height of the item's children.

See also Q3ListViewItem::height().

int QStyleOptionQ3ListViewItem::itemY

This variable holds the Y-coordinate for the item.

See also Q3ListViewItem::itemPos().

int QStyleOptionQ3ListViewItem::totalHeight

This variable holds the total height of the item, including its children.

See also Q3ListViewItem::totalHeight().


Copyright © 2006 Trolltech Trademarks
Qt 4.1.3