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
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