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

Line wrapping in QTextEdit does not work for white spaces

    XMLWordPrintable

Details

    Description

      If you have a line like this:

      cursor.insertText(QString().fill(' ', 100)+"?", format);

      with the following wrap properties set:

      textEdit->setWordWrapMode(QTextOption::WrapAnywhere);
      textEdit->setLineWrapMode(QTextEdit::FixedColumnWidth);
      textEdit->setLineWrapColumnOrWidth(10);

      The whitespaces are printed 100 in a row, ignoring the column/width of 10.

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes