sorry, but i didn't understand what you are trying to do here....
so, why don't you try using the Qt Designer in Qt Creator, then run to see if the result is what you want.
then if you don't want to use the Qt Designer to create your form, go to the build directory and you will find Ui.XXXX.h and see how you should layout your elements
Bookmarks