krikr808/MD — Issue #5: QTextBrowser::append always inserts neline afterwards
Author: krikr808
Created: 2011-11-29 23:56:56+00:00
State: open

When new text is appended to the simulation output text browser, a new line is always inserted at the end of the text. This is very annoying and it is an incredibly stupid way to design a widget.

The ["solution" to this problem](http://lists.trolltech.com/qt-interest/2004-07/thread00435-0.html), or the workaround, is apparently to use insert instead of append. It's only that, if the mouse cursor is not placed in the end of the text, the inserted text will be inserted in the middle of the text instead of at the end of it. The solution to _this_ problem, in turn, is to always detect when the text browser has been clicked, by catching the mouse press event, so that the cursor can again be placed at the end of the text.