From koffice-devel Thu Nov 13 20:47:28 2008 From: Florian Date: Thu, 13 Nov 2008 20:47:28 +0000 To: koffice-devel Subject: Re: KoCanvasBase::updateCanvas() and QPainter::boundingRect() Message-Id: <200811142146.15929.florianmerz () gmx ! de> X-MARC-Message: https://marc.info/?l=koffice-devel&m=122660924812725 QFontMetrics? I always wondered what that class was useful for. Well, now I know :) Thanks a lot, Thomas, I'll give it a try. Am Mittwoch 12 November 2008 08:47:41 schrieb Thomas Zander: > On Friday 7. November 2008 22:29:01 Florian Merz wrote: > > The rectangle might change any time, so it's not a real option to store > > the size of the rectangle, and I really would like to have a bounding > > rectangle as small as possible. Is there a clean solution to this > > problem? > > Yes, you can ask the text itself for the bounding rect. > > see QFontMetrics method; > QRect boundingRect (const QString &text) const _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel