0

I have a QGraphicsItem with a custom graphic as shown below in the top half of the figure, where the red circle is the shape() of the item:

qgraphicsitem

Is there a way to preserve the graphic but just shift it like shown in the bottom half of the figure?

Arnold Spence
  • 21,942
  • 7
  • 74
  • 67
JustinBlaber
  • 4,629
  • 2
  • 36
  • 57

1 Answers1

0

I don't think, you can move QGraphicsItem without shape. Shape is bounded to QGraphicsItem. It changes its co-ordinates according to QGraphicsItem.

If you want to achieve something like your second half of the fig. You need to have two QGraphicsItems (one is your red outer circle and second your inner graphics item).

Anwar Shaikh
  • 1,591
  • 3
  • 22
  • 43