I would like to use a QLCDNumber and i would like to have it aligned to the right and fully stretched in vertical direction. But when i add it to QVBox (or HBox or Grid) and set Qt:AlignRigth it doesn't stretch anymore.

If i don't use align, QLCD is fully stretched in vertical direction:


But i would like to have QLCD on the right, but then this happens:


How can i set QLCDNumber so that it will use maximum height?