On Fri, Jul 12, 2013 at 2:06 AM, wrote:
> Hi
>
> I would derive from QLabel, get the length of it (in pixel) with
> frameWidth() use QFontMetrics QWidget::fontMetrics () with int
> QFontMetrics::width ( const QString & text, int len = -1 ) to get the
> length of the text in pixels, check if it fi
Hi
I would derive from QLabel, get the length of it (in pixel) with frameWidth()
use QFontMetrics QWidget::fontMetrics () with int QFontMetrics::width ( const
QString & text, int len = -1 ) to get the length of the text in pixels, check
if it fits, and if no cut some chars and replace it with …
Dear all,
When maximumSize() is set on a QLabel, if the text is too long, it
truncates it harshly (the rendered text pixmap is just trimmed). Is there
a way to display the text nicely truncated with "..." or so at the end and
no half-character?
If not, this would really be something to implement