[Qt-qml] Problems with QGraphicsItem::ItemSendsScenePositionChanges in QDeclarativeItem

henrik.hartz at nokia.com henrik.hartz at nokia.com
Wed Mar 17 07:45:05 CET 2010


Hi Richard,

I can verify that this flag isn't set after - looks like a bug in Qt. I have created 

   http://bugreports.qt.nokia.com/browse/QTBUG-9093

Thanks for the report and the test case!

Cheers,
Henrik

On 17. mars 2010, at 08.06, ext Ricard Marxer Piñón wrote:

> 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
> <test_sceneposchange.zip><ATT00001..txt>





More information about the Qt-qml mailing list