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

TextEdit in long text when frequently insert text

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.9, 5.12
    • None
    • Windows

    Description

      when TextEdit's length is above 20000(may be other value),you could not insert any text.if you insert text,the cursor will turn in circle and the app could do nothing.

      example code is at below.

      import QtQuick 2.0
      import QtQuick.Window 2.0
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Scroll")
      
          Component.onCompleted: {
              for(var loop=0;loop<20000;++loop)
              {
                  text.append("12345678901234567890123456789012345678901234567890");
              }
          }
      
          TextEdit {
              wrapMode:TextEdit.WrapAnywhere
              id:text
              onLengthChanged: print(length)
              text: "TextEdit\n...\n...\n...\n...\n...\n...\n"
          }
      }
      

      I try insert function too.there is nothing differ.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              redcarp redcarp
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes