PDA

View Full Version : The use of SizePolicy



Placido Currò
9th April 2009, 21:45
Hi all,

from to time I come back to QT 4, so I regret not having much time to understand QT deeply. I have been wondering how QT uses the sizepolicy in qwidgets. Do you have a sample just to help people learn the way it works ?

This is maybe the first of some questions. I hope I don't get you bored.

Thanks in advance.

Placido.

fnmblot
9th April 2009, 21:50
Try this (http://doc.trolltech.com/4.5/qsize.html) link to QSize

wysota
9th April 2009, 22:10
Do you have a sample just to help people learn the way it works ?

The best way to learn how it works is to take Designer, place a few buttons on a form, apply a layout on the form and then start changing size policies of buttons and look what results it gives when you start resizing the form (you can use the "preview" functionality for that). Just remember size policies only have influence on widgets that are inside a layout.