What happened to "Qt:TextWordBreak"?
It's in the documentation, but codewise, seems like it doesn't exist.
I am trying to use "MyLabel->fontMetrics().size" to find out the size of a certain text in a label. the label is multi-line with word wrapping. I'd like to find out the size (mainly height) of the outcome text in the current font.
it works in general, but with QFontMetrics::size(), it has no bounding rect...
Try out QFontMetrics::boundingRect...
Thanks, that did the job along with "Qt::TextWordWrap"