Pythonmywindow.mytextbrowser.insertHtml(" I need spaces!!!")
Pythonmywindow.mytextbrowser.insertHtml(" I need spaces!!!")
Pythonmylist=["one", "-two", "three", " four"]for x in mylist: if x[0] == "-": myform.MytextBrowser.insertHtml("<font color = red>"+x+"</font>") else: myform.MytextBrowser.insertPlainText(x)
C++ (Qt)ui->textBrowser->insertHtml("<font color=red>red text</font>\n");