The QScreenDriverFactory class creates screen drivers in Qt for Embedded Linux. 更多...
| 頭: | #include <QScreenDriverFactory> |
| QScreen * | create (const QString & key , int displayId ) |
| QStringList | keys () |
The QScreenDriverFactory class creates screen drivers in Qt for Embedded Linux.
注意,此類隻可用於 Qt for Embedded Linux .
QScreenDriverFactory is used to detect and instantiate the available screen drivers, allowing Qt for Embedded Linux to load the preferred driver into the server application at runtime. The create () 函數返迴 QScreen object representing the screen driver identified by a given key. The valid keys (i.e. the supported drivers) can be retrieved using the keys () 函數。
Qt for Embedded Linux provides several built-in screen drivers. In addition, custom screen drivers can be added using Qt's plugin mechanism, i.e. by subclassing the QScreen class and creating a screen driver plugin ( QScreenDriverPlugin ). See the display management 文檔編製瞭解細節。
另請參閱 QScreen and QScreenDriverPlugin .
[static]
QScreen
* QScreenDriverFactory::
create
(const
QString
&
key
,
int
displayId
)
Creates the screen driver specified by the given key , using the display specified by the given displayId .
Note that the keys are case-insensitive.
另請參閱 keys ().
[static]
QStringList
QScreenDriverFactory::
keys
()
Returns the list of valid keys, i.e. the available screen drivers.
另請參閱 create ().