Hello to all
How do I put a new line and a space in output textBrowser ???
Printable View
Hello to all
How do I put a new line and a space in output textBrowser ???
Have you tryorCode:
\n
?Code:
</br>
for new line andCode:
<br>
for space but without spaces insideCode:
& n b s p ;
not work
ui->textBrowser_8->setText( "Sum = " + resultString.setNum(ptr->t) + \n );
Of course not, that won't even compile.
Here's a couple to try:
Code:
ui->textBrowser_8->setPlainText( "Sum = " + resultString.setNum(ptr->t) + "\n" ); ui->textBrowser_8->setHtml( "Sum = " + resultString.setNum(ptr->t) + "<br/>" );