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?

Qt Code:
  1. QString numberStr = "1.234556776544";
  2. QLabel *label = new QLabel(numberStr);
  3. label->setToolTip(numberStr);
  4. label->setTextInteractionFlags(Qt::TextSelectableByMouse);
  5. label->setFixedWidth(66);
  6. l->addWidget(label);
To copy to clipboard, switch view to plain text mode 
Thanks!