PDA

View Full Version : auto resize custom widget



CopyrightPhilly
5th October 2007, 07:48
hi,

can anyone tell me if its possable to have a widget automaticly resize its self so all its content can be showed?

the reason I want to do this is i have created a custom widget (via code) that has a scroll bar,
and another custom (via designer) widget that will be placed inside that widget, this is the widget i wish to autoresize.

[edit] I would only like to resize the height not the width.

thanks,
Philly

jpn
5th October 2007, 09:40
I suggest you read about layouts (http://doc.trolltech.com/4.3/layout), which are one of the fundamental concepts of Qt.