[Qt-qml] Problems with QGraphicsItem::ItemSendsScenePositionChanges in QDeclarativeItem
Ricard Marxer Piñón
ricardmp at gmail.com
Tue Mar 16 23:06:46 CET 2010
Hi,
I'm having a problem setting the flag
QGraphicsItem::ItemSendsScenePositionChanges of a QDeclarativeItem
subclass.
The flag doesn't seem to get set.
I attach an example where I tried to isolate the problem.
It uses the Qt 7 TP1 that I compiled from source.
It contains a project for:
Qt Creator 1.3.81
Based on Qt 4.7.0 (32 bit)
Built on Mar 10 2010 at 12:31:07
>From revision fd44edcead
The example is simple:
1. run it
2. double click on the canvas (this will create a node)
3. look at the console and see how the flag doesn't get set
I know in this concrete case there's not much use of the
ItemSendsScenePositionChanges. But in my project the nodes are
delegates in a ListView and I want to know when their global position
changes so that I can draw links between them.
Thanks in advance for your help, and for Qml!!
--
ricard
http://www.ricardmarxer.com
http://www.caligraft.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_sceneposchange.zip
Type: application/zip
Size: 233987 bytes
Desc: not available
Url : http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100316/045e2597/attachment.zip
More information about the Qt-qml
mailing list