PDA

View Full Version : Best way to make list box / view same size as parent



steg90
14th May 2007, 14:49
Hi,

I have a QListWidget on a form, I was wondering what is the best way to resize this widget so it is always same size as its parent form, this best to do with layouts or catch the resize event?

Regards,
Steve

jpn
14th May 2007, 14:55
You want to add the list widget in a layout and install the layout on the parent form. For more information, see Layout Classes (http://doc.trolltech.com/4.2/layout.html) ;)