See the examples at the documentation and QLayout, Signals and Slots and you should be able to create a basic GUI.