Answer to Question #11816 in QT | GTR | GTK for Yogesh Shinde

Question #11816
How to display text on QLabel label in following format
Sample text Sample hie Sample hie

I want above text in this format on label:-
Sample text
Sample hie
Sample hie
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Walter Boniek
29.06.16, 12:07

It's very simple. QLabel->setText("Sample text \nSample hie\nSample hie"); \n = carriage break bye

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS