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

List:       kde-kimageshop
Subject:    Adrian on Painters and Qt4
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2006-08-30 14:45:43
Message-ID: 200608301645.43740.boud () valdyas ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


For archival purposes:

=================

The way the paint system currently works is that you have either a 
KisQPaintDeviceCanvas (based on a QWidget) or a KisOpenGLCanvas (based 
on a QGLWidget) and you paint on these using a KisCanvasPainter. 
KisCanvasPainter has mostly the same API as QPainter, so you can work 
with it much as you would a QPainter on a normal widget. 
KisQPaintDeviceCanvasPainter implements KisCanvasPainter using a 
QPainter internally. In Qt 3, since you can't paint with a QPainter on a 
QGLWidget, KisOpenGLCanvasPainter implements the KisCanvasPainter 
functions using the direct OpenGL interface. 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.

=================
-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi

[Attachment #5 (application/pgp-signature)]

_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


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

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