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

QChar::Nbsp results in a word wrap

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes