This could also help: http://qt4.digitalfanatics.org/tiqt/chapter-2.html .