AlignTop aligns to the top border of the box. AlignBottom aligns to the bottom border of the box. For vertical boxes, the possible alignments are AlignCenter centers horizontally in the box. AlignLeft aligns to the left border of the box. AlignRight aligns to the right border of the box.
Alignment only has effect if the size of the box is greater than the widget's maximum size.
Alignment works perpendicular to this direction. The directions are LeftToRight, RightToLeft, TopToBottom and BottomToTop. For the last two, the shorter aliases Down and Up are also available. Initializes this box. Reimplemented from QLayout.