[Qt-interest] Layers in Graphics Framework

Jason H scorp1us at yahoo.com
Tue Apr 26 16:17:51 CEST 2011


You'd need a proxy class that maintains a pointer to the actual item. Your layer 
would be an array of these proxy class instances. Then just use the proxy items 
as normal items.

The proxy's events and signals, would map to the actual, so ProxyItem::paint(..) 
{ realItem->paint(..); }






________________________________
From: AK <qtbond007 at gmail.com>
To: qt-interest at qt.nokia.com
Sent: Tue, April 26, 2011 6:31:00 AM
Subject: [Qt-interest] Layers in Graphics Framework

Hello,

I am trying to implement layers support for my app.

- A item can be in one or more layer.
- A view displays one / more layer
- If current display view doesn't display a layer assigned to an items, that 
item is not shown. Also its not available to hit-testing methods ( items( QPoint 
 etc.).

Off course, I would not like to replicate the scene, keeping them in sync could 
be costly.

What will be the best approach to achieve it???

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


More information about the Qt-interest-old mailing list