[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: KoCanvasBase::updateCanvas() and QPainter::boundingRect()
From:       Florian <florianmerz () gmx ! de>
Date:       2008-11-13 20:47:28
Message-ID: 200811142146.15929.florianmerz () gmx ! de
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic