[Qt-interest] Ellipsis at the end of QLabel

Witteveen, Arnt ArntW at enfocus.com
Wed Jan 14 17:33:11 CET 2009


Hi, I'm looking for a way to have a Qlabel display '...' at the end of
the text when the user resizes the window below the labels minimal width
that displays everything. I've seem the TextElideMode enum, but that
doesn't seem to be used in Qlabel? Is there another way to do this? I'd
like to have this in both a single line label and a 2 line label. Come
to think of it, I'm not sure how I can limit a label to 2 lines either?

Arnt




More information about the Qt-interest-old mailing list