Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.2, 6.2.4, 6.5.3, 6.6.3, 6.7.1, 6.8.0 FF
-
None
Description
Text layout is broken if it contains inline images and eliding is used
import QtQuick 2.15 import QtQuick.Window 2.15 Window { width: 640 height: 480 visible: true readonly property string smile: "<img src='qrc:/(smile).png' width='18' height='18'/>" Rectangle { anchors.fill: text color: 'grey' opacity: 0.2 } Text { id: text anchors.centerIn: parent width: 80 text: smile + smile + smile + smile + smile + smile + smile + smile + smile + smile + smile elide: Text.ElideRight maximumLineCount: 2 wrapMode: Text.Wrap } }
See attached example for repro.
Attachments
Issue Links
- relates to
-
QTBUG-36163 Using wrap end elide on text with embedded image breaks it's layout
- Reported
-
QTBUG-57191 StyledText format Images are not elided in Text component
- Open
-
QTBUG-112717 Eliding is not functional for Quick Text (StyledText) with inline images
- Reported