[Qt-interest] QLabel wrap anywhere
Andre Haupt
andre at bitwigglers.org
Wed Aug 18 17:30:59 CEST 2010
On Wed, Aug 18, 2010 at 11:16:43AM -0400, Jordan Upham wrote:
> Andre,
>
> Using QLabel::setWordWrap() will only wrap on whitespace but I need the text
> to wrap when it reaches a certain width regardless if there is a whitespace
> or not.
Ah, ok. That was not completely clear from your original post.
I think you should use QFontMetrics::width() then, as Eric suggested.
regards,
Andre
More information about the Qt-interest-old
mailing list