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

QTextEdit doesn't wrap space at the end of the line

    XMLWordPrintable

Details

    Description

      Use this QMl,

      Rectangle {
      width: 640
      height: 480
      
      TextEdit {
           width: 640
           text: "Hello Qml, This is a text of the word wrapping case"
           font.family: "Helvetica"
           font.pointSize: 20
           color: "blue"
           focus: true
           wrapMode: TextEdit.WordWrap
       }
      }
      

      At the end of the word case, enter spacebar multiple times.

      Expected Outcome: It moves to next line and it also increases the indent as per the number of spacebar's

      Actual Outcome: It moves to next line, but doesnt increase the indent. It always satrts from the first character space
      of the second line, no matter how many spaces you give.

      Note: This also happens if you enter space bar's from the middle of the text provided, say after the word "wrapping".

      Attachments

        Issue Links

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

          Activity

            People

              mrudulpen Mrudul Pendharkar
              tapadar Indrajit Tapadar (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes