Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
QT class, which cut texts
TomNow99 last edited by TomNow99
A few weeks ago I find perfect class in Qt, which do:
I have some long text like "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", and my QLabel has fixed Width and it's smaller
than size of my long text ( in pixels ). I would like to see in QLabel something like:
I know that is possible, but I don't remember the name of this class...
In this function in that class I have to add param: the size in pixels.
EDIT2: Maybe QFontMetrics - I have to check that
VRonin last edited by
Maybe this example helps: https://doc.qt.io/qt-5/qtwidgets-widgets-elidedlabel-example.html
JonB last edited by JonB
https://itqna.net/questions/14614/it-possible-use-elide-qlabel derives from
QLabel, while the Qt example derives from
QFrame. The last answer there is just 4 lines rather than a whole class. As you please.
TomNow99 last edited by