Results 1 to 7 of 7

Thread: Displaying Text Quickly

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Re: Displaying Text Quickly

    Thanks for the suggestion, I'll try that. Right now I'm putting about 1200 characters every 50 milliseconds into the text windows (qt 3.3), but writing it in 100 character increments. If I can somehow spool that up maybe it will work like I want to without causing performance issues. Thanks

    Aaron

  2. #2
    Join Date
    Jan 2006
    Location
    Scandinavia
    Posts
    62
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5
    Thanked 2 Times in 1 Post

    Default Re: Displaying Text Quickly

    Wow you must be a fast reader

    Displaying the text that quickly wouldn't surprise me if it made the program sluggish. Do you need to display it or only to store it into a data structure?

  3. #3

    Default Re: Displaying Text Quickly

    I do have to display it eventually. I tried putting in a qtable without displaying it but I think the shear number of qtable operations was killing it. Is there an efficient way to store a lot of incoming text and then be able to display it without delay after the incoming text has finished? Like maybe qstring list like somebody suggested before? Thanks

    Aaron

  4. #4
    Join Date
    Jan 2006
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Displaying Text Quickly

    How are you receiving the data? It might be best to simply store a list(QStringList or QList<QByteArray>) of whatever you are receiving, and only join it together every certain time limit or when the data stops coming in. This will prevent copying data and doing screen update every 50 milliseconds. You could use a QTimer firing every 500ms or so to update the display, or just wait until until all the data is collected.

  5. #5

    Default Re: Displaying Text Quickly

    I queued up everything into a qstring list, and then write it to the textedit window--that seems to work great. However, if I add any rich text to it the scrolling becomes ridiculously slow (this is on a sun station, btw). Not sure if I can really do anything about that issue, unless there's some way to increase scrolling performance for text boxes (qt 3.3). Thanks everyone for all of your help so far.

    Aaron

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 10:49
  2. Displaying all characters in text edit
    By chadkeck in forum Qt Programming
    Replies: 1
    Last Post: 17th September 2008, 02:48
  3. Displaying text on a MDI area background
    By JPNaude in forum Qt Programming
    Replies: 10
    Last Post: 13th September 2008, 19:51
  4. displaying text
    By me_here_me in forum Qt Programming
    Replies: 2
    Last Post: 14th September 2007, 11:48
  5. displaying Text in QTAble dynamically
    By raghvendramisra in forum Qt Programming
    Replies: 8
    Last Post: 31st August 2007, 11:47

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.