Results 1 to 2 of 2

Thread: Scrolling with Text Edit or Text Browser

  1. #1
    Join Date
    Dec 2017
    Posts
    12
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Scrolling with Text Edit or Text Browser

    I have a QT creator 4.4.1 and QT 5.9.3. I have a code that read the serial from the Arduino, and I'd like to have it displayed in a window. I got it to work using the text browser widget. However, I couldn't scroll down to see the rest of my data. I also tried text edit and it didn't work either. Is it possible to scroll in the text browser after all?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Scrolling with Text Edit or Text Browser

    Is it possible to scroll in the text browser after all?
    Short answer. Yes, if there is more text than the widget display area.

    You will not get scroll bars if the text will fit within the widget. If your layout is broken you may have a widget that is much taller than you think.
    "We can't solve problems by using the same kind of thinking we used when we created them." -- Einstein
    If you are posting code then please use [code] [/code] tags around it - makes addressing the problem easier.

Similar Threads

  1. Replies: 0
    Last Post: 25th September 2013, 09:53
  2. How to display text from a file to a text browser
    By ironmantis7x in forum Newbie
    Replies: 11
    Last Post: 14th June 2012, 15:23
  3. Writing the text within a text edit to a file
    By Splatify in forum Newbie
    Replies: 4
    Last Post: 23rd February 2011, 22:48
  4. Qt class showing text area/text edit
    By maverick_pol in forum Qt Programming
    Replies: 4
    Last Post: 21st August 2008, 12:15
  5. automatic scrolling text edit
    By Vash5556 in forum Newbie
    Replies: 2
    Last Post: 19th March 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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.