-
Bug
-
Resolution: Invalid
-
P2: Important
-
4.2.3
-
None
The following example demonstrates a bug in the HTML rendering.
For some reason there is a line underneath the "A line which should not..." sentence as well.
#include <QApplication>
#include <QTextEdit>
int main(int argc, char **argv)
{
QApplication a(argc, argv);
QTextEdit te;
te.append("A simple first sentence.");
te.append("<hr>");
te.append("A line which should not be underlined but is?");
te.show();
return a.exec();
}
Update:
A temporary work-around:
te.append("A simple first sentence.");
QTextBlockFormat blockFmt = te.textCursor().blockFormat();
te.append("<hr>");
te.append("A line which should not be underlined but is?");
te.textCursor().setBlockFormat(blockFmt);
You can also add a "<br />" tag behind the <hr>