QAbstractExtensionManager#
The QAbstractExtensionManager
class provides an interface for extension managers in Qt Designer. More…
Inherited by: QExtensionManager
Synopsis#
Virtual functions#
def
extension
(object, iid)def
registerExtensions
(factory, iid)def
unregisterExtensions
(factory, iid)
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
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 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
QExtensionFactory
- class PySide6.QtDesigner.QAbstractExtensionManager#
- abstract PySide6.QtDesigner.QAbstractExtensionManager.extension(object, iid)#
- Parameters:
object –
PySide6.QtCore.QObject
iid – str
- Return type:
Returns the extension, specified by iid
, for the given object
.
- abstract PySide6.QtDesigner.QAbstractExtensionManager.registerExtensions(factory, iid)#
- Parameters:
iid – str
Register the given extension factory
with the extension specified by iid
.
- abstract PySide6.QtDesigner.QAbstractExtensionManager.unregisterExtensions(factory, iid)#
- Parameters:
iid – str
Unregister the given factory
with the extension specified by iid
.