Results 1 to 3 of 3

Thread: QTextBrowser, horizontal Scrollbal not appearing

  1. #1
    Join Date
    Jul 2010
    Location
    /home/hakermania/
    Posts
    233
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    129
    Thanked 3 Times in 3 Posts

    Question QTextBrowser, horizontal Scrollbal not appearing

    Hello!

    I have in my code this:
    Qt Code:
    1. ui->text_browser->append("ABCDEFGHIJKLMNOPQRSTUVWXYZABCABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ");
    To copy to clipboard, switch view to plain text mode 
    and it results into this:

    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:


    Am I missing something or this is a bug?
    When you 're trying to help somebody in the newbie section, don't forget that he is a newbie. Be specific and give examples.

  2. #2
    Join Date
    Apr 2009
    Posts
    46
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    4
    Thanked 7 Times in 7 Posts

    Default Re: QTextBrowser, horizontal Scrollbal not appearing

    Set lineWrapMode to NoWrap.

  3. The following user says thank you to RSX for this useful post:

    hakermania (14th December 2011)

  4. #3
    Join Date
    Jul 2010
    Location
    /home/hakermania/
    Posts
    233
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    129
    Thanked 3 Times in 3 Posts

    Default Re: QTextBrowser, horizontal Scrollbal not appearing

    Thanks, it worked
    When you 're trying to help somebody in the newbie section, don't forget that he is a newbie. Be specific and give examples.

Similar Threads

  1. Menu bar not appearing
    By GUIman in forum Newbie
    Replies: 5
    Last Post: 23rd February 2011, 08:00
  2. scroll bars are not appearing
    By Cruz in forum Qt Programming
    Replies: 4
    Last Post: 10th September 2010, 18:26
  3. Scroll Bar not appearing in QScrollArea
    By coolkaps in forum Newbie
    Replies: 1
    Last Post: 2nd May 2010, 17:12
  4. qwt plugin not appearing in qt3
    By gilbertd26 in forum Qwt
    Replies: 2
    Last Post: 5th January 2009, 11:39
  5. Windows not appearing in XP.
    By beardybloke in forum Qt Programming
    Replies: 7
    Last Post: 24th October 2007, 18:32

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.