I have a label that can't be bigger than fixed size. Therefore some strings are cutoff and some aren't. Is there a way to test if the text exceeds the size of the label? And then to draw "..." at the end of the string?
Thanks!Qt Code:
label->setToolTip(numberStr); label->setTextInteractionFlags(Qt::TextSelectableByMouse); label->setFixedWidth(66); l->addWidget(label);To copy to clipboard, switch view to plain text mode
Bookmarks