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

QStyleOptionListViewItem Class Reference

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

#include <QStyleOptionListViewItem>

Inherits QStyleOption.

List of all members.

Public Types

Read-Only Properties

Public Functions


Detailed Description

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

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

See also Q3ListView and Q3ListViewItem.


Member Type Documentation

enum QStyleOptionListViewItem::ListViewItemFeature
typedef QStyleOptionListViewItem::ListViewItemFeatures

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

QStyleOptionListViewItem::NoneA standard item
QStyleOptionListViewItem::ExpandableThe item has children that can be shown
QStyleOptionListViewItem::MultiLineThe item is more than one line tall.
QStyleOptionListViewItem::VisibleThe item is visible
QStyleOptionListViewItem::ParentControlThe item's parent is a type of item control (QCheckListItem::Controller)

The ListViewItemFeatures typedef can store a combination of ListViewItemFeature values.

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


Property Documentation

childCount : int

This property holds the number of children the item has.

features : ListViewItemFeatures

This property holds the features for this item.

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

See also ListViewItemFeature.

height : int

This property holds the height of the item.

This is the height of just the item (not it's children).

See also Q3ListViewItem::height().

itemY : int

This property holds the Y-coordinate for the item.

See also Q3ListViewItem::itemY().

totalHeight : int

This property holds the total height of the item.

This is the height of the item including its children.

See also Q3ListViewItem::totalHeight().


Member Function Documentation

QStyleOptionListViewItem::QStyleOptionListViewItem ( int version )

Construct a QStyleOptionListViewItem with version version.

All values in the structure are set to zero. It is the responsibility of the developer to set all appropriate values.


Copyright © 2004 Trolltech. Trademarks
Qt 4.0.0-tp1