[Qt-interest] Parent position change.
John McClurkin
jwm at nei.nih.gov
Wed Nov 4 13:47:17 CET 2009
manish.s.sharma at nokia.com wrote:
> Hi All,
>
> I have a QGraphicsItem widget inside another QGraphicsItem widget. Now I
> am changing the parent item's position is it possible to get any
> notification inside the child item about the change in the position of
> its parent?
> I checked Qt doc and it seems itemChange will be called only when item's
> position is changing relative to the parent. Is there any other way?
>
> Regards,
> Manish
>
>
You will have to subclass QGraphicsItem and add a slot that accepts the
parent's position. Then emit a signal in the parent whenever it is moved.
More information about the Qt-interest-old
mailing list