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

QTextEdit::ToPlainText converst nbsp to standard space.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.6.1
    • 4.5.2
    • Documentation
    • None
    •  5a52d83e9464d31cae31fbc0482a68a183a44077

    Description

      t4id: 261429

      The current API is a bit misleading. If you for example do:

      textEdit->setPlainText(s)

      With a text that contains nbsp chars then the text in the widget will have these no breaking spaces.
      But if you retrieve the text again:

      s = textEdit->toPlainText()

      Then 's' is modified if nbsp is present so that all nbsp is converted into standard space.


      This might sound like a bug, but according to case: 227284 it is not.
      So maybe we should note this in the doc instead.

      Attachments

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

        Activity

          People

            engvolds Morten Engvoldsen (Inactive)
            jasmcdon Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes