0

I want to display a big string in a Qlablel for this I simply have created a label in the Qt GUI editor.

Then set the string with the Wordwrap property to "ON".

Here text is not coming to the next line itself. Instead, it's crossing the view region.

However, if I give an "\n" it works well.

How do I put up the big string in a label to display in a visible region?

JavaAndCSharp
  • 1,507
  • 3
  • 23
  • 47
Naruto
  • 9,476
  • 37
  • 118
  • 201

1 Answers1

1
label->setWordWrap(true);

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

baysmith
  • 5,082
  • 1
  • 23
  • 18