Qt:Документация 4.3.2/qscreendriverfactory

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь



Главная · Все классы · Основные классы · Классы по группам · Модули · Функции



QScreenDriverFactory Class Reference
[модуль QtGui ]

The QScreenDriverFactory class creates screen drivers in Qtopia Core. Далее...

 #include <QScreenDriverFactory>

Статические открытые члены

  • QScreen * create ( const QString & key, int displayId )
  • QStringList keys ()

Подробное описание

The QScreenDriverFactory class creates screen drivers in Qtopia Core.

Note that this class is only available in Qtopia Core.

QScreenDriverFactory is used to detect and instantiate the available screen drivers, allowing Qtopia Core to load the preferred driver into the server application at runtime. The create() function returns a 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() function.

Qtopia Core 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 documentation for details.

See also QScreen and QScreenDriverPlugin.

Описание функций-членов

QScreen * QScreenDriverFactory::create ( const QString & key, int displayId ) [static]

Creates the screen driver specified by the given key, using the display specified by the given displayId.

Note that the keys are case-insensitive.

See also keys().

QStringList QScreenDriverFactory::keys () [static]

Returns the list of valid keys, i.e. the available screen drivers.

See also create().

Copyright © 2007 Trolltech Trademarks
Qt 4.3.2