[Interest] QGraphicsItem: How to limit the position to which it is moved?
Giuseppe D'Angelo
dangelog at gmail.com
Wed Apr 11 15:52:42 CEST 2012
On 11 April 2012 05:37, Douglas Scott <douglas.a.scott at gmail.com> wrote:
>
> I do not understand where I can intercept the setting of the object's
> position on the screen. I thought I could redefined
> QGraphicsItem::itemChange() and watch for ItemPositionChange and HasChanged
> -- but I never get any of these notifications.
That's the proper way. But note that you need
QGraphicsItem::ItemSendsGeometryChanges set for it to work.
--
Giuseppe D'Angelo
More information about the Interest
mailing list