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

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

Версия от 10:36, 14 ноября 2008; Root (Обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

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

Image:trolltech-logo.png

Содержание

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

The QAbstractExtensionManager class provides an interface for extension managers in Qt Designer. More...

 #include <QAbstractExtensionManager>

Inherited by QExtensionManager.

[править] Открытые функции


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

The QAbstractExtensionManager class provides an interface for extension managers in Qt Designer.

QAbstractExtensionManager is not intended to be instantiated directly; use the QExtensionManager instead.

In Qt Designer, extension are not created until they are required. For that reason, when implementing a custom extension, you must also create a QExtensionFactory, i.e a class that is able to make an instance of your extension, and register it using Qt Designer's extension manager.

When an extension is required, Qt Designer's extension manager will run through all its registered factories calling QExtensionFactory::createExtension() for each until the first one that is able to create the requested extension for the selected object, is found. This factory will then make an instance of the extension.

See also QExtensionManager and QExtensionFactory.


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

[править]
QAbstractExtensionManager::~QAbstractExtensionManager () [virtual]

Destroys the extension manager.

[править]
QObject * QAbstractExtensionManager::extension ( QObject * object, const QString & iid ) const [pure virtual]

Returns the extension, specified by iid, for the given object.

[править]
void QAbstractExtensionManager::registerExtensions ( QAbstractExtensionFactory * factory, const QString & iid ) [pure virtual]

Register the given extension factory with the extension specified by iid.

[править]
void QAbstractExtensionManager::unregisterExtensions ( QAbstractExtensionFactory * factory, const QString & iid ) [pure virtual]

Unregister the given factory with the extension specified by iid.


Copyright © 2007 Trolltech Trademarks
Qt 4.3.2