[Bug created] Elide plain text in a QTextDocument?
How do I configure a QTextDocument to elide plain text?
I.e. If the text is too long, I'd like to see something like
"This is a ridi...line of text".
QFontMetrics::elidedText() should do what you want.
I have discussed this issue with Qt support. The result is this QTBUG (well, it's a suggestion, but they are all called "QTBUG"):
The code is there in QFontMetrics, there's just no way to make use of it in a QTextDocument in any sensible way.