Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

QAbstractExtensionManager Class

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

Header:#include <QAbstractExtensionManager>
Inherited By:

QExtensionManager

Public Functions

virtual~QAbstractExtensionManager()
virtual QObject *extension(QObject * object, const QString & iid) const = 0
virtual voidregisterExtensions(QAbstractExtensionFactory * factory, const QString & iid) = 0
virtual voidunregisterExtensions(QAbstractExtensionFactory * factory, const QString & iid) = 0

Detailed Description

TheQAbstractExtensionManager class provides an interface for extension managers in Qt Designer.

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

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

When an extension is required,Qt Designer'sextension manager will run through all its registered factories callingQExtensionFactory::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 alsoQExtensionManager andQExtensionFactory.

Member Function Documentation

[virtual]QAbstractExtensionManager::~QAbstractExtensionManager()

Destroys the extension manager.

[pure virtual]QObject * QAbstractExtensionManager::extension(QObject * object, constQString & iid) const

Returns the extension, specified byiid, for the givenobject.

[pure virtual]void QAbstractExtensionManager::registerExtensions(QAbstractExtensionFactory * factory, constQString & iid)

Register the given extensionfactory with the extension specified byiid.

[pure virtual]void QAbstractExtensionManager::unregisterExtensions(QAbstractExtensionFactory * factory, constQString & iid)

Unregister the givenfactory with the extension specified byiid.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.


[8]ページ先頭

©2009-2025 Movatter.jp