The way you create your layout is odd, why are you passing the widget as parent? Usually, you want to create the layout with no parent and then call:
See code here:Qt Code:
widget->setLayout(layout);To copy to clipboard, switch view to plain text mode
http://doc.trolltech.com/4.6/qvboxlayout.html#details
edit: oops, I just read you can pass the widget as parent. However, setLayout() is worth a try :-)




Reply With Quote
Bookmarks