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

TextEditor allows the cursor to go off the screen when entering text

    XMLWordPrintable

Details

    Description

      Running the code below and entering more lines of text than fit in the box, I would
      expect the TextEditor to position the text so that the cursor is always visible.

      import Qt 4.7
      
      Rectangle {
          width: 640; height: 480;
          Rectangle {
              anchors.centerIn: parent
              width: 400
              height: 300;
              color: "blue"
      
              TextEdit {
                  anchors.fill: parent
                  font.pixelSize: 30
                  color: "white"
                  wrapMode: TextEdit.WordWrap
              }
          }
      }
      

      Attachments

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

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            mathiasm Mathias Malmqvist
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes