HWeight VWeight
This widget is used to control the layout. When a HBox
or VBox
widget decides how to devide remaining space amount two stretchable widgets, their weights are taken into account. This widget is used to change the weight of the child widget. Each widget has a vertical and a horizontal weight. You can change on or both of them. If you use HVWeight
, the weight in both dimensions is set to the same value.
Note: No real widget is created ( any more ), just the weight value is passed to the child widget.
See the Layout HOWTO for details.