KWin and Qt5
Marco Martin
notmart at gmail.com
Tue May 10 00:00:05 CEST 2011
On Monday 09 May 2011, Alexis Ménard wrote:
> Hi,
>
> There are big differences between QGPW and QWidget sitting on top of
> the scene graph.
>
> QPW we needed to :
>
> - Convert all events from a QWidget (QGV) to QGS then back to QWidget.
> - Hook up the painting code from one QPainter to the paintEvent of QWidget.
>
> QGV was a framework sitting on top of another one (QWidget) trying to
> integrate again with the one it's sitting on.
>
> The way I see the QWidget integration with scene graph is WAY more simple :
>
> - No event redirections/machinery (this is managed by Lighthouse already).
> - All drawing calls made on QPainter goes to the scene graph.
any idea how this redirection works?
from what i see of QSGPaintedItem it seems to create and upload an entire
image each paint event, but i still hope to have it understood wrongly(tm) ;)
--
Marco Martin
More information about the Plasma-devel
mailing list