Results 1 to 2 of 2

Thread: QPlainTextEdit performance in Qt 4.7.0

  1. #1
    Join Date
    May 2009
    Posts
    49
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default QPlainTextEdit performance in Qt 4.7.0

    I have some huge data sets that can have 500k or more lines of text. I keep those as a list of QByteArray.

    To navigate through them I use a QPlainTextEdit as a viewport, it only shows about 50 lines at once. This viewport is controlled by some custom scroll bars.

    Now the problem is with the vertical scroll bar. Using Qt 4.5.1 I can have let's say 500k lines and I can smoothly and very fast drag the vertical scrollbar through all content.

    Using Qt 4.7.0, on both VS and MinGW, the dragging is very sloppy, like the scroll indicator is struggling

    I've narrowed down by comenting stuff in my update method and it all comes to this

    Qt Code:
    1. m_viewport->setPlainText(dataBuffer);
    To copy to clipboard, switch view to plain text mode 

    dataBuffer is just a QByteArray containing about 50 lines of data.

    Does anyone know something about this issue?

    Thank you

  2. #2
    Join Date
    May 2009
    Posts
    49
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QPlainTextEdit performance in Qt 4.7.0

    Happens the same on 4.7.2. So, compiled with 4.5.1 it's lighting fast, compiled with 4.7.0 and 4.7.2 it's amazingly slow

Similar Threads

  1. PyQt4 - QPlainTextEdit: performance when hidding blocks
    By josemaria.alkala in forum Newbie
    Replies: 6
    Last Post: 27th June 2010, 14:58
  2. QPlainTextEdit
    By deeee in forum Qt Programming
    Replies: 1
    Last Post: 27th May 2010, 01:05
  3. QplainTextEdit
    By deeee in forum Qt Programming
    Replies: 6
    Last Post: 27th May 2010, 00:14
  4. QPlainTextEdit and anchors
    By bear101 in forum Qt Programming
    Replies: 2
    Last Post: 13th December 2009, 18:10
  5. QPlainTextEdit
    By Carlsberg in forum Qt Programming
    Replies: 4
    Last Post: 13th June 2009, 06:12

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.