QTextEdit with Html margin Problem

  • I have a QTextEdit and I want to append some incomming messages.

    it looks like this

    historyText->append("<div style=\"color: red;\"><b>" + time + "</b></div><div style=\"margin-left: 10px;\">bla</div>");

    but every time I append more than one line I get something like this


    I dont know why the margin is applied to the bold secton too

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.