Home · Overviews · Examples 

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

The QStyleOptionMenuItem class is used to describe the parameter necessary for drawing a menu item. More...

Inherits QStyleOption.


Detailed Description

The QStyleOptionMenuItem class is used to describe the parameter necessary for drawing a menu item.

QStyleOptionMenuItem contains all the information that QStyle functions need to draw the menu items from QMenu. It is also used for drawing other menu-related widgets.

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.


Copyright © 2008 Trolltech Trademarks
Qt Jambi 4.3.4_01