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

Malyushytsky, Alex alex at wai.com
Mon May 23 22:10:49 CEST 2011


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.

Alex



-----Original Message-----
From: qt-interest-bounces+alex=wai.com at qt.nokia.com [mailto:qt-interest-bounces+alex=wai.com at qt.nokia.com] On Behalf Of Nikos Chantziaras
Sent: Saturday, May 21, 2011 3:20 PM
To: qt-interest at qt.nokia.com
Subject: [Qt-interest] QGraphicsItem::ItemSendsScenePositionChanges has no effect in Qt 4.6.3

I have a QGraphicsPixmapItem subclass, and in its ctor I set the
following flag:

   setFlag(QGraphicsItem::ItemSendsScenePositionChanges, true);

in order to have QGraphicsItem::itemChange() getting called whenever the
items is moved.  This works just fine in Qt 4.7.  However, in 4.6.3, the
version I need to support (Debian 6 uses that version), it doesn't.
According to the docs though, it should work:

   http://doc.trolltech.com/4.6/qgraphicsitem.html#GraphicsItemFlag-enum

   "This flag was introduced in Qt 4.6."

Is there something I can do?  Qt 4.6 support is important in my case.
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”

“Please consider our environment before printing this email.”


More information about the Qt-interest-old mailing list