Hello to all
How do I put a new line and a space in output textBrowser ???
Hello to all
How do I put a new line and a space in output textBrowser ???
Last edited by NewLegend; 11th August 2010 at 07:14.
Have you try or ?
for new line and for space but without spaces inside
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:
Qt Code:
ui->textBrowser_8->setPlainText( "Sum = " + resultString.setNum(ptr->t) + "\n" ); ui->textBrowser_8->setHtml( "Sum = " + resultString.setNum(ptr->t) + "<br/>" );To copy to clipboard, switch view to plain text mode
Bookmarks