-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.3
-
None
-
Qt 6.8.3, macOS 15.6
The following example
Text { Layout.maximumWidth: 300 font.pixelSize: 14 color: "black" text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." elide: Text.ElideRight maximumLineCount: 1 textFormat: Text.StyledText Rectangle { anchors.fill: parent color: Qt.rgba(0,0,1, 0.2) } } Text { Layout.maximumWidth: 300 font.pixelSize: 14 color: "black" text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." elide: Text.ElideRight maximumLineCount: 1 textFormat: Text.StyledText Rectangle { anchors.fill: parent color: Qt.rgba(1,0,0, 0.2) } }
Second text is not elided correctly.
Reproduces with Text.StyledText