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.
- class PySide6.QtDesigner.QAbstractExtensionManager¶
- PySide6.QtDesigner.QAbstractExtensionManager.extension(object, iid)¶
- PySide6.QtDesigner.QAbstractExtensionManager.registerExtensions(factory, iid)¶
iid – str
© 2021 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 the GNU 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.