[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".
-
I have discussed this issue with Qt support. The result is this QTBUG (well, it's a suggestion, but they are all called "QTBUG"):
"QTBUG":https://bugreports.qt-project.org/browse/QTBUG-34857
The code is there in QFontMetrics, there's just no way to make use of it in a QTextDocument in any sensible way.