Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-9970

QPlainTextEdit becomes really slow if more than 4000 lines

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 3.x, 4.0.0, 4.0.1, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.3.5, 4.4.0, 4.4.1, 4.4.2, 4.4.3, 4.5.0, 4.5.1, 4.5.2, 4.5.3, 4.6.0, 4.6.1, 4.6.2
    • None

    Description

      If you have more than 4000 lines in QPlainTextEdit, scrolling around the bottom of the scrollbar is fine, but scrolling around the middle is unreasonably slow. Worse, text insertion anywhere away from the end of the document is super slow. Even leaving the widget focused and the cursor blinking at the first line eats up 50% of my CPU. The CPU consumption drops if I focus on another app to remove the the blinking cursor.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              dlee David Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes