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

TextEdit in long text when frequently insert text

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes