PDA

View Full Version : Display QLabel in two lines



arunvv
8th February 2008, 01:49
Hi All,

I have a Label which has 3 strings(nearly 20-22 characters, 6-9 charracters for each string) in it, I want the QLabel to be display in two lines.

I tried with designer to make the text to display in 2 lines, but failed to do so.
How can I make my QLabel to be displayed in two lines rather than in one line.

Thanks & Regards,
Arun.

ashukla
8th February 2008, 05:25
Try with set wordWrap (http://doc.trolltech.com/4.3/qlabel.html#wordWrap-prop) in QLabel.