如果item是scene的顶层节点,那么它的坐标原点是相对于scene的,如果是子节点,它的坐标是相对其父节点的。
比如itemParent,itemChild;
itemParent.pos()坐标是相对scene的
itemChile.pos()坐标是以itemParent的坐标原点为原点绘制的,是相对于父节点itemParent的坐标原点的。
话说这个item坐标系统真是蛋疼
如果item是scene的顶层节点,那么它的坐标原点是相对于scene的,如果是子节点,它的坐标是相对其父节点的。
比如itemParent,itemChild;
itemParent.pos()坐标是相对scene的
itemChile.pos()坐标是以itemParent的坐标原点为原点绘制的,是相对于父节点itemParent的坐标原点的。
话说这个item坐标系统真是蛋疼