PySide6.QtDesigner.QAbstractExtensionManager¶
- class QAbstractExtensionManager¶
The
QAbstractExtensionManagerclass provides an interface for extension managers in Qt Widgets Designer. More…Inherited by:
QExtensionManagerSynopsis¶
Virtual methods¶
def
extension()
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¶
QAbstractExtensionManageris not intended to be instantiated directly; use theQExtensionManagerinstead.In Qt Widgets 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 Widgets Designer’sextension manager.When an extension is required, Qt Widgets Designer’s
extension managerwill run through all its registered factories callingcreateExtension()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
QExtensionManagerQExtensionFactoryReturns the extension, specified by
iid, for the givenobject.- abstract registerExtensions(factory, iid)¶
- Parameters:
factory –
QAbstractExtensionFactoryiid – str
Register the given extension
factorywith the extension specified byiid.- abstract unregisterExtensions(factory, iid)¶
- Parameters:
factory –
QAbstractExtensionFactoryiid – str
Unregister the given
factorywith the extension specified byiid.