PySide6.QtDesigner.QAbstractExtensionFactory

class QAbstractExtensionFactory

The QAbstractExtensionFactory class provides an interface for extension factories in Qt Widgets Designer. More

Synopsis

Virtual methods

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

QAbstractExtensionFactory is not intended to be instantiated directly; use the QExtensionFactory instead.

In Qt Widgets Designer, extension factories are used to look up and create named extensions as 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’s extension manager .

When an extension is required, Qt Widgets 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

QExtensionFactory QExtensionManager

abstract extension(object, iid)
Parameters:
Return type:

QObject

Returns the extension specified by iid for the given object.