Hier ist dazu ein Tutorial

https://wiki.qt.io/Qt_for_Beginners#Our_first_window