[Qt-interest] QGraphicsItem::ItemSendsScenePositionChanges has no effect in Qt 4.6.3

Nikos Chantziaras realnc at arcor.de
Mon May 23 22:40:18 CEST 2011


On 05/23/2011 11:10 PM, Malyushytsky, Alex wrote:
>  From documentation QGraphicsItem::ItemSendsScenePositionChanges is "Internal only" in 4.6.3.
> I guess this is a reason it does not work.
>
> Could you just set ItemSendsGeometryChanges and listen to QGraphicsItem::ItemPositionChange?
> It works in 4.6.3 and I think it provides all information you might need.

You're a life saver.  Indeed that works, and I'm somewhat embarrassed 
that I didn't spot that flag on my own :-/

I've put an "#if QT_VERSION < 0x040700" for that flag since it looks 
like it's slower then ItemSendsScenePositionChanges, as it calls 
itemChange() more often.



More information about the Qt-interest-old mailing list