QDecorationFactory Class

The QDecorationFactory class creates window decorations in Qt for Embedded Linux. 更多...

头: #include <QDecorationFactory>

静态公共成员

QDecoration * create (const QString & key )
QStringList keys ()

详细描述

The QDecorationFactory class creates window decorations in Qt for Embedded Linux.

注意,此类只可用于 Qt for Embedded Linux .

QDecorationFactory is used to detect and instantiate the available decorations, allowing Qt for Embedded Linux to load the preferred decoration into the application at runtime. The create () 函数返回 QDecoration object representing the decoration identified by a given key. The valid keys (i.e. the supported decorations) can be retrieved using the keys () 函数。

Qt for Embedded Linux provides three built-in decorations: 默认 , Styled and Windows . In addition, custom decorations can be added using Qt's plugin mechanism , i.e. by subclassing the QDecoration class and creating a mouse driver plugin ( QDecorationPlugin ).

另请参阅 QDecoration and QDecorationPlugin .

成员函数文档编制

[static] QDecoration * QDecorationFactory:: create (const QString & key )

Creates the decoration specified by the given key . Note that the keys are case-insensitive.

另请参阅 keys ().

[static] QStringList QDecorationFactory:: keys ()

Returns the list of valid keys, i.e., the available decorations.

另请参阅 create ().