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

QChar::Nbsp results in a word wrap

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 5.0.1
    • GUI: Text handling
    • None
    • Windows 7 (64-bit)
      Visual Studio 2010

    Description

      Do:

      • I added a QGraphicsTextItem to a scene.
      • That QGraphicsTextItem has a QTextDocument that contains "first'Nbsp'second third".
      • I used setTextWidth on the item to ensure the text needs to be wrapped.
        See:
      • The text is wrapped between both 'first' and 'second' and between 'second' and 'third'.
        Remarks:
      • Qt 4.8 does this correctly.
      • Using QTextDocument::drawContents leads to the same result.

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              crimson13 Randy Voet
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes