Home · Overviews · Examples 

QStyleOptionViewItem Class Reference
[com.trolltech.qt.gui module]

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

Inherits QStyleOption.

Inherited by QStyleOptionViewItemV2.


Detailed Description

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

QStyleOptionViewItem contains all the information that QStyle functions need to draw the items for Qt's model/view classes.

For performance reasons, the access to the member variables is direct (i.e., using the . or -> operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.

For an example demonstrating how style options can be used, see the Styles example.

See also QStyleOption and Model/View Programming.


Copyright © 2008 Trolltech Trademarks
Qt Jambi 4.3.5_01