A form created by Qt Designer can contain custom widgets. In order to be able to create code for them, some information about these custom widgets has to be stored. This is done in the <customwidgets> element. This element contains any number of <customwidget> subelements, which in turn have the following child elements:
This element contains the class name of the custom widget.
This element specifies the header file of the custom widget that will be included in the code generation. This element has an attribute named location, which can have the values local or global.
This element describes, by means of its two subelements, <width> and <height>, the size hint that should be used in Qt Designer.
This element describes the pixmap that should be used to represent the custom widget in Qt Designer.
There can be any number of these elements, which describe the signals the custom widget has.
There can be any number of these elements, which describe the slots the custom widget has.
There can be any number of these elements, which describe the properties of this custom widget. This element has an attribute named type, which describes the type of the property.