Eneboo - Documentación para desarrolladores
Tipos públicos | Métodos públicos
Referencia de la Clase QStyleOption

The QStyleOption class specifies optional parameters for QStyle functions.Some QStyle functions take an optional argument specifying extra information that is required for a paritical primitive or control. So that the QStyle class can be extended, QStyleOption is used to provide a variable-argument for these options. Más...

#include <qstyle.h>

Lista de todos los miembros.

Tipos públicos

enum  StyleOptionDefault { Default, Default }
enum  StyleOptionDefault { Default, Default }

Métodos públicos

 QStyleOption (StyleOptionDefault=Default)
 QStyleOption (int in1)
 QStyleOption (int in1, int in2)
 QStyleOption (int in1, int in2, int in3, int in4)
 QStyleOption (QMenuItem *m)
 QStyleOption (QMenuItem *m, int in1)
 QStyleOption (QMenuItem *m, int in1, int in2)
 QStyleOption (const QColor &c)
 QStyleOption (QTab *t)
 QStyleOption (QListViewItem *i)
 QStyleOption (QCheckListItem *i)
 QStyleOption (Qt::ArrowType a)
 QStyleOption (const QRect &r)
 QStyleOption (QWidget *w)
bool isDefault () const
int day () const
int lineWidth () const
int midLineWidth () const
int frameShape () const
int frameShadow () const
int headerSection () const
QMenuItemmenuItem () const
int maxIconWidth () const
int tabWidth () const
const QColorcolor () const
QTabtab () const
QCheckListItemcheckListItem () const
QListViewItemlistViewItem () const
Qt::ArrowType arrowType () const
QRect rect () const
QWidgetwidget () const
 QStyleOption (StyleOptionDefault=Default)
 QStyleOption (int in1)
 QStyleOption (int in1, int in2)
 QStyleOption (int in1, int in2, int in3, int in4)
 QStyleOption (QMenuItem *m)
 QStyleOption (QMenuItem *m, int in1)
 QStyleOption (QMenuItem *m, int in1, int in2)
 QStyleOption (const QColor &c)
 QStyleOption (QTab *t)
 QStyleOption (QListViewItem *i)
 QStyleOption (QCheckListItem *i)
 QStyleOption (Qt::ArrowType a)
 QStyleOption (const QRect &r)
 QStyleOption (QWidget *w)
bool isDefault () const
int day () const
int lineWidth () const
int midLineWidth () const
int frameShape () const
int frameShadow () const
int headerSection () const
QMenuItemmenuItem () const
int maxIconWidth () const
int tabWidth () const
const QColorcolor () const
QTabtab () const
QCheckListItemcheckListItem () const
QListViewItemlistViewItem () const
Qt::ArrowType arrowType () const
QRect rect () const
QWidgetwidget () const

Descripción detallada

The QStyleOption class specifies optional parameters for QStyle functions.

Some QStyle functions take an optional argument specifying extra information that is required for a paritical primitive or control. So that the QStyle class can be extended, QStyleOption is used to provide a variable-argument for these options.

The QStyleOption class has constructors for each type of optional argument, and this set of constructors may be extended in future Qt releases. There are also corresponding access functions that return the optional arguments: these too may be extended.

For each constructor, you should refer to the documentation of the QStyle functions to see the meaning of the arguments.

When calling QStyle functions from your own widgets, you must only pass the default QStyleOption or the argument that QStyle is documented to accept. For example, if the function expects QStyleOption(QMenuItem *, int), passing QStyleOption(QMenuItem *) leaves the optional integer argument uninitialized.

When subclassing QStyle, you must similarly only expect the default or documented arguments. The other arguments will have uninitialized values.

If you make your own QStyle subclasses and your own widgets, you can make a subclass of QStyleOption to pass additional arguments to your QStyle subclass. You will need to cast the "const QStyleOption&" argument to your subclass, so be sure your style has been called from your widget.


Documentación de las enumeraciones miembro de la clase

This enum value can be passed as the optional argument to any QStyle function.

Default

Valores de enumeraciones:
Default 
Default 
Valores de enumeraciones:
Default 
Default 

Documentación del constructor y destructor

QStyleOption::QStyleOption ( StyleOptionDefault  = Default) [inline]

The default option. This can always be passed as the optional argument to QStyle functions.

QStyleOption::QStyleOption ( int  in1) [inline]

Pass one integer, in1. For example, headerSection.

QStyleOption::QStyleOption ( int  in1,
int  in2 
) [inline]

Pass two integers, in1 and in2. For example, linewidth and midlinewidth.

QStyleOption::QStyleOption ( int  in1,
int  in2,
int  in3,
int  in4 
) [inline]

Pass four integers, in1, in2, in3 and in4.

QStyleOption::QStyleOption ( QMenuItem m) [inline]

Pass a menu item, m.

QStyleOption::QStyleOption ( QMenuItem m,
int  in1 
) [inline]

Pass a menu item and an integer, m and in1.

QStyleOption::QStyleOption ( QMenuItem m,
int  in1,
int  in2 
) [inline]

Pass a menu item and two integers, m, in1 and in2.

QStyleOption::QStyleOption ( const QColor c) [inline]

Pass a color, c.

QStyleOption::QStyleOption ( QTab t) [inline]

Pass a QTab, t.

QStyleOption::QStyleOption ( QListViewItem i) [inline]

Pass a QListViewItem, i.

QStyleOption::QStyleOption ( QCheckListItem i) [inline]

Pass a QCheckListItem, i.

QStyleOption::QStyleOption ( Qt::ArrowType  a) [inline]

Pass an Qt::ArrowType, a.

QStyleOption::QStyleOption ( const QRect r) [inline]

Pass a QRect, r.

QStyleOption::QStyleOption ( QWidget w) [inline]

Pass a QWidget, w.

QStyleOption::QStyleOption ( StyleOptionDefault  = Default) [inline]
QStyleOption::QStyleOption ( int  in1) [inline]
QStyleOption::QStyleOption ( int  in1,
int  in2 
) [inline]
QStyleOption::QStyleOption ( int  in1,
int  in2,
int  in3,
int  in4 
) [inline]
QStyleOption::QStyleOption ( QMenuItem m) [inline]
QStyleOption::QStyleOption ( QMenuItem m,
int  in1 
) [inline]
QStyleOption::QStyleOption ( QMenuItem m,
int  in1,
int  in2 
) [inline]
QStyleOption::QStyleOption ( const QColor c) [inline]
QStyleOption::QStyleOption ( QTab t) [inline]
QStyleOption::QStyleOption ( QListViewItem i) [inline]
QStyleOption::QStyleOption ( QCheckListItem i) [inline]
QStyleOption::QStyleOption ( Qt::ArrowType  a) [inline]
QStyleOption::QStyleOption ( const QRect r) [inline]
QStyleOption::QStyleOption ( QWidget w) [inline]

Documentación de las funciones miembro

Qt::ArrowType QStyleOption::arrowType ( ) const [inline]

Returns an arrow type if the appropriate constructor was called; otherwise the return value is undefined.

Qt::ArrowType QStyleOption::arrowType ( ) const [inline]
QCheckListItem * QStyleOption::checkListItem ( ) const [inline]

Returns a check list item if the appropriate constructor was called; otherwise the return value is undefined.

QCheckListItem* QStyleOption::checkListItem ( ) const [inline]
const QColor& QStyleOption::color ( ) const [inline]
const QColor & QStyleOption::color ( ) const [inline]

Returns a color if the appropriate constructor was called; otherwise the return value is undefined.

int QStyleOption::day ( ) const [inline]

Returns the index of the day in the month if the appropriate constructor was called; otherwise the return value is undefined.

int QStyleOption::day ( ) const [inline]
int QStyleOption::frameShadow ( ) const [inline]
int QStyleOption::frameShadow ( ) const [inline]

Returns a QFrame::Shadow value if the appropriate constructor was called; otherwise the return value is undefined.

int QStyleOption::frameShape ( ) const [inline]

Returns a QFrame::Shape value if the appropriate constructor was called; otherwise the return value is undefined.

int QStyleOption::frameShape ( ) const [inline]
int QStyleOption::headerSection ( ) const [inline]
int QStyleOption::headerSection ( ) const [inline]

Returns the header section if the appropriate constructor was called; otherwise the return value is undefined.

bool QStyleOption::isDefault ( ) const [inline]
bool QStyleOption::isDefault ( ) const [inline]

Returns TRUE if the option was constructed with the default constructor; otherwise returns FALSE.

int QStyleOption::lineWidth ( ) const [inline]
int QStyleOption::lineWidth ( ) const [inline]

Returns the line width if the appropriate constructor was called; otherwise the return value is undefined.

QListViewItem * QStyleOption::listViewItem ( ) const [inline]

Returns a QListView item if the appropriate constructor was called; otherwise the return value is undefined.

QListViewItem* QStyleOption::listViewItem ( ) const [inline]
int QStyleOption::maxIconWidth ( ) const [inline]

Returns the maximum width of the menu item check area if the appropriate constructor was called; otherwise the return value is undefined.

int QStyleOption::maxIconWidth ( ) const [inline]
QMenuItem * QStyleOption::menuItem ( ) const [inline]

Returns a menu item if the appropriate constructor was called; otherwise the return value is undefined.

QMenuItem* QStyleOption::menuItem ( ) const [inline]
int QStyleOption::midLineWidth ( ) const [inline]

Returns the mid-line width if the appropriate constructor was called; otherwise the return value is undefined.

int QStyleOption::midLineWidth ( ) const [inline]
QRect QStyleOption::rect ( ) const [inline]
QRect QStyleOption::rect ( ) const [inline]

Returns a rectangle if the appropriate constructor was called; otherwise the return value is undefined.

QTab* QStyleOption::tab ( ) const [inline]
QTab * QStyleOption::tab ( ) const [inline]

Returns a QTabBar tab if the appropriate constructor was called; otherwise the return value is undefined.

int QStyleOption::tabWidth ( ) const [inline]

Returns the tab indent width if the appropriate constructor was called; otherwise the return value is undefined.

int QStyleOption::tabWidth ( ) const [inline]
QWidget* QStyleOption::widget ( ) const [inline]
QWidget * QStyleOption::widget ( ) const [inline]

Returns a pointer to a widget if the appropriate constructor was called; otherwise the return value is undefined.


La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'