pratham_shah
3rd July 2013, 11:10
Hi,
I have a 2 custom QGraphicsItem say MainGraphicsItem and AttachedGraphicsItem.
MainGraphicsItem has many children of type AttachedGraphicsItem (MainGraphicsItem is the parent AttachedGraphicsItem)
All these items are in a scene (the scene expands automatically).
Consider MainGraphicsItem as a rectangle and AttachedGraphicsItem as a small circle. They are arranged as shown in the attached image.
9264
Now when I move MainGraphicsItem to the right edge of the scene the AttachedGraphicsItem go out of the scene and are not visible. (Please see pic 2)
9265
The scene doesn't expand in this case.
Can you please resolve the issue.
I have a 2 custom QGraphicsItem say MainGraphicsItem and AttachedGraphicsItem.
MainGraphicsItem has many children of type AttachedGraphicsItem (MainGraphicsItem is the parent AttachedGraphicsItem)
All these items are in a scene (the scene expands automatically).
Consider MainGraphicsItem as a rectangle and AttachedGraphicsItem as a small circle. They are arranged as shown in the attached image.
9264
Now when I move MainGraphicsItem to the right edge of the scene the AttachedGraphicsItem go out of the scene and are not visible. (Please see pic 2)
9265
The scene doesn't expand in this case.
Can you please resolve the issue.