Re: Bounding rect question

2013-07-08 Thread Christoph Feck
On Monday 08 July 2013 18:53:02 Leonardo Giordani wrote: > tmpRect = fm.boundingRect(rect, flags, text); > > which extracts the bounding rect of the given text written using > the given font. I do not understand why the function requires a > QRect as input. The result is a QRect, not a QSize, so

Bounding rect question

2013-07-08 Thread Leonardo Giordani
In Clock::prepareFont() (kde-workspace/plasma/generic/applets/digital-clock/clock.cpp) I find the following code tmpRect = fm.boundingRect(rect, flags, text); which extracts the bounding rect of the given text written using the given font. I do not understand why the function requires a QRect as