views:

34

answers:

1

Hi,

i want to display a big string in Qlablel for this simply i have created a label in Qt GUI editor, then i put the string, with the Wordwrap property ON.

here text is not coming to the next line itself, instead its crossing the view region. but if i give "\n" it works well.

how to put up big string in label, to display in visible region.

+1  A: 
label->setWordWrap(true);

See the QLabel::setWordWrap(bool on) documentation.

baysmith