There are basically two ways of doing Qt programming. One of them is to use the Qt tool called "designer" and construct the application doing a "drag and drop" sort of graphical GUI-builder way. The other way is to do everything programmatically. Unfortunately I am doing things the easy way using the designer GUI-builder so I don't have source that I can share with you that does things from the ground up so to speak. Sorry about that.
Why don't you check out this link: http://www.digitalfanatics.org/projects/qt_tutorial/
It is a link to a public tutorial hosted by Trolltech. You can also check out other open source links from the Trolltech site. Hopefully you will be able to see how easy it is to code using Qt.