- static QPyDesignerCustomWidgetCollection.registerCustomWidget(type[, xml=""[, tool_tip=""[, icon=""[, group=""[container=False]]]]])¶
Registers an instance of a Python-implemented QWidget by type with Qt Designer.
The optional keyword arguments correspond to the getters of QDesignerCustomWidgetInterface :
xml (str) – A snippet of XML code in
.uiformat that specifies how the widget is created and sets initial property values.
tool_tip (str) – Tool tip to be shown in the widget box.
icon (str) – Path to an icon file be shown in the widget box.
group (str) – Category for grouping widgets in the widget box.
module (str) – Module name for generating the import code by uic .
container (bool) – Indicates whether the widget is a container like QGroupBox, that is, child widgets can be placed on it.
© 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.