The Description Of The Used Custom Widgets

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:

<class>

This element contains the class name of the custom widget.

<header>

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.

<sizehint>

This element describes, by means of its two subelements, <width> and <height>, the size hint that should be used in Qt Designer.

<pixmap>

This element describes the pixmap that should be used to represent the custom widget in Qt Designer.

<signal>

There can be any number of these elements, which describe the signals the custom widget has.

<slots>

There can be any number of these elements, which describe the slots the custom widget has.

<property>

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.