PDA

View Full Version : Align and stretch of QLCDNumber in QVBoxLayout



snow
25th August 2008, 09:11
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:
http://www.farma-drustvo.si/rok/qt_noalign.jpg

But i would like to have QLCD on the right, but then this happens:
http://www.farma-drustvo.si/rok/qt_align.jpg

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