Home > Mobile >  QGraphicsPixmapItem object and QGraphicsRectItem setRotation behavior is not the same?
QGraphicsPixmapItem object and QGraphicsRectItem setRotation behavior is not the same?

Time:09-25

Created QGraphicsPixmapItem and QGraphicsRectItem object respectively, with the same center of rotation and Angle to rotate, they QGraphicsRectItem after rotation effect is correct, but QGraphicsPixmapItem rotates, display position is wrong, I don't know why? is

CodePudding user response:

Rotation effect is related to their size also, look at their boundingRect () properties are the same?

CodePudding user response:

Rotary has nothing to do with the size, when the main center of rotation
  •  Tags:  
  • Qt
  • Related