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

Wrap TextEdit cursor positions after trailing whitespace.

    XMLWordPrintable

Details

    Description

      QTextDocument and therefore TextEdit doesn't wrap lines or the cursor position on trailing whitespace. This means that when entering whitespace characters the cursor position will not increase past the far edge of the TextEdit until a visible character is entered which triggers the creation of a new line. An option to QTextLayout which creates a new empty line at the end of a layout if white space wraps would allow the cursor to instead appear on a new line in this circumstance. It would however need to be selectively enabled to prevent unnecessary trailing lines in presentation uses of QTextDocument, and in all uses of QTextDocument there shouldn't be new lines introduced between text blocks.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes