How do i wrap the text (in different lines) in a Qt label? I tried with enter, ALT+Enter, the escape sequences like \n, and html notations, but it doesn't work that way. Can someone help me in writing text in multiple lines?
How do i wrap the text (in different lines) in a Qt label? I tried with enter, ALT+Enter, the escape sequences like \n, and html notations, but it doesn't work that way. Can someone help me in writing text in multiple lines?
Did you try QLabel::setWordWrap(true) ???
gkarthick5 (18th August 2011)
Thanks for the reply. But is there a way to set it in the designer (UI form)?
sasi (29th June 2009)
You can do this in QtDesigner by selecting the label and going to the Property Editor, search for wordWrap and select it.
Camryn64 (22nd October 2016)
fine.. new for me.. thanks for post
Bookmarks