The QAbstractExtensionManager class provides an interface for extension managers in Qt Designer. More...
#include <QAbstractExtensionManager>
Inherited by: QExtensionManager.
virtual | ~QAbstractExtensionManager () |
virtual QObject * | extension ( QObject * object, const QString & iid ) const = 0 |
virtual void | registerExtensions ( QAbstractExtensionFactory * factory, const QString & iid ) = 0 |
virtual void | unregisterExtensions ( QAbstractExtensionFactory * factory, const QString & iid ) = 0 |
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.
Destroys the extension manager.
Returns the extension, specified by iid, for the given object.
Register the given extension factory with the extension specified by iid.
Unregister the given factory with the extension specified by iid.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.