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

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

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



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



[править] QDecorationFactory Class Reference
[модуль QtGui ]

The QDecorationFactory class creates window decorations in Qtopia Core. Далее...

 #include <QDecorationFactory>

[править] Статические открытые члены

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

[править] Подробное описание

The QDecorationFactory class creates window decorations in Qtopia Core.

Note that this class is only available in Qtopia Core.

QDecorationFactory is used to detect and instantiate the available decorations, allowing Qtopia Core to load the preferred decoration into the application at runtime. The create() function returns a QDecoration object representing the decoration identified by a given key. The valid keys (i.e. the supported decorations) can be retrieved using the keys() function.

Qtopia Core provides three built-in decorations: Default, 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).

See also QDecoration and QDecorationPlugin.

[править] Описание функций-членов

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

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

See also keys().

QStringList QDecorationFactory::keys () [static]

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

See also create().

Copyright © 2007 Trolltech Trademarks
Qt 4.3.2