You can use qt designer to generate your servercode:
====================================================

Start designer and choose a new Dialog.
Within designer you are only allowed to use the following widgets:

"QPushButton"
"QWidget"
"QLabel"
"QLineEdit"
"QComboBox"
"QLCDNumber"
"QSlider"
"QButtonGroup"
"QRadioButton"
"QCheckBox"
"QFrame"

Additionally these custom widgets can be used:

"QDraw"
"QImage"      // you have to define the property "text" for this widget (text=filename.bmp)
"QGLWidget"

In order to define this custom widgets, choose tools->custom->edit custom widgets ...
Name the widgets as above, choose a meaningful icon and in case of QImage define the property text on the Properties Tab.

Designer stores it's data in an xml-file file.ui
Then you can generate sourcecode with:

usage: ui2pvc file.ui file.c

