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 ().