PDA

View Full Version : QTextBrowser, horizontal Scrollbal not appearing



hakermania
13th December 2011, 14:56
Hello!

I have in my code this:

ui->text_browser->append("ABCDEFGHIJKLMNOPQRSTUVWXYZABCABCDEFGHIJKLMNOPQRSTU VWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRS TUVWXYZ");
and it results into this:
http://i.imgur.com/1CLMh.png
As you can see, even if I've checked to scroll horizontally when this should be done, the above long string goes below and occupies 3 whole lines, while it should take only 1 which could scroll. Bottom horizontal scrollback never appears.

Even if I select the horizontal scrollbar to be always present, it does nothing, same result with a scrollback in the bottom:
http://i.imgur.com/4D9T2.png

Am I missing something or this is a bug?

RSX
13th December 2011, 17:17
Set lineWrapMode to NoWrap.

hakermania
14th December 2011, 13:20
Thanks, it worked :D