I understand you can make a new line using <html> <br> </html>
but when I add a variable (is a string type) to the text of a label this command doesn't work any more.
label.setText("blahblahblah" + variable + "<html><br>blahblahblah</html>");
I need it to output:
blahblahblah
blahblahblah
You need to have the <html>
tag as the first thing in your String:
label.setText("<html>blahblahblah" + variable + "<br>blahblahblah</html>");
It should be:
label.setText("<html>blahblahblah" + variable + "<br>blahblahblah</html>");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With