Adrian on Painters and Qt4

Boudewijn Rempt boud at valdyas.org
Tue Sep 19 10:59:10 CEST 2006


On Saturday 02 September 2006 12:20, Thomas Zander wrote:
> On Wednesday 30 August 2006 16:45, Boudewijn Rempt wrote:
> > . However, since in Qt 4
> > QPainter can paint on a QGLWidget, KisCanvasPainter should be able to
> > simply inherit QPainter and there should be no need for
> > KisOpenGLCanvasPainter or KisQPaintDeviceCanvasPainter. That's how I
> > saw it going.
>
> Yap, thats right. Things are quite simplified in Qt4. Simplified for the
> programmer, that is :)
> If you take care to have sufficient checking for clipping so you don't
> draw things the paint system doesn't want you to draw then its also quite
> a bit faster.

That's pretty simple for Krita: we only paint the bits of the image that have 
changed that are visible.

> Do note that 90% of the cleverness in QGraphicsView is not in that class
> itself but in Arthur. Which means that all that goodness is reused in all
> KOffice apps without much work at all.

-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20060919/14d8fd6f/attachment.pgp 


More information about the kimageshop mailing list