Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.2.4, 6.3.1
-
None
Description
Non-breaking space (nbsp) between <img> tag and text doesn't prevent wrapping.
Example:
import QtQuick Window { width: 640 height: 480 visible: true Text { width: 40 wrapMode: Text.WordWrap readonly property string inlineImage: "<img src='qrc:/(smile).png' width='18' height='18'/>" text: inlineImage + ' ' + 'text' textFormat: Text.StyledText Rectangle { anchors.fill: parent color: 'transparent' border.width: 1 } } }
Actual result: text is wrapped after the image
Expected result: text shouldn't be wrapped and should be displayed in one line
see full example TextIssue 2.zip
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-105143 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
428060,3 | Fix NBSP (non-breaking space) handling around <img> tag in styled text | dev | qt/qtdeclarative | Status: ABANDONED | 0 | 0 |