Qml: use Text's elide property with textFormat: RichText
问题 I have an RSS feed with escaped HTML characters that I want to display in a Text component where I trim the excess content with elide: Text.ElideRight and wrapMode: text.WordWrap . While this works very well for plain text, when I use textFormat: Text.RichText the trimming does not work. How can I make the trimming to work or, if this is impossible, encode the HTML easily prior to binding it to the text component? 回答1: Indeed Text doesn't support elide for Text.RichText . There is a bug open