[Qt-interest] Adding arbitrary depth to Graphics Scene & Friends

Jason H scorp1us at yahoo.com
Tue Apr 26 17:03:53 CEST 2011


Let me ask this. Is everything in your scene high BPP?


If so, why not?




________________________________
From: Javier Urien <javierurien at gmail.com>
To: Jason H <scorp1us at yahoo.com>
Cc: qt-interest at trolltech.com
Sent: Tue, April 26, 2011 10:54:00 AM
Subject: Re: [Qt-interest] Adding arbitrary depth to Graphics Scene & Friends




On Tue, Apr 26, 2011 at 11:46, Jason H <scorp1us at yahoo.com> wrote:

Yes, you are missing something. None of the GV operations change underlying 
data. They only transform the view of it. The Item is the data. The Scene is the 
object hierarchy. The View is the scene objects with transforms applied.
>
>If you are trying to use GV to modify your item data, you are going up the wrong 
>tree. Only a QPainter will do that. 
>
>

I see, you are right, but... (and this might be related with what you say below) 
I want to be able to use the render method to write de scene to a file without 
loosing data, so, a QHighBPPDataPainter might be necessary
 

>You might be able to Subclass QGraphicsView and use your derived high BPP 
>painter. Also, you'd need a QGraphicsItem that would paint() in high BPP. But 
>how would you do that with standard ARGB items?...
>
>

I would delegate to parent classes? I do not quite get the question here...

Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110426/b8f71672/attachment.html 


More information about the Qt-interest-old mailing list