To make programming even easier, the Qtopia SDK comes with a tool to allow you to layout objects graphically. Source one of the "dev" scripts and run designer to fire up the visual editor. The example application is shown at the left after selecting File > Open > examplebase.ui (XML format).
Push buttons, tool buttons, radio buttons, check boxes, frames, tabs, list boxes, tables, edit boxes, combo boxes, spin boxes, sliders, dials, labels, images, lcd numbers, lines, progress bars, and other custom widgets can all be added with a few mouse clicks. Objects can be aligned using group boxes, layout grids and spacers. Widget properties can be changed using the Property Editor window. Tab order can be set and organized using a the Tab Order F4 button.
New slots can be added to create "stub code" to be called when signals occur. Signals (such as button clicks, state changes, value changes, etc.) can be connected to slots using the Connect Signals/Slots F3 button.
Once the application is graphically laid out, the UI file is then saved and when it is recompiled, the "stub code" is inserted into the proper file to be modified by the programmer. Slot code is not erased if you delete a slot; the generated code needs to be manually deleted.
For more information on Qtopia programming, visit doc.trolltech.com. For more example code, check out my various Zaurus programming projects at www.cinlug.org.