答案链接 https://stackoverflow.com/questions/7761442/qgraphicsitem-setpos-is-not-moving-items-position
原因是如果不设置sceneRect(), view会自适应的移动scene
本文探讨了在使用QGraphicsItem时遇到的定位难题。若不设置sceneRect(),视图可能会自适应地移动场景,导致元素位置偏移。文章提供了正确的解决方案。
答案链接 https://stackoverflow.com/questions/7761442/qgraphicsitem-setpos-is-not-moving-items-position
原因是如果不设置sceneRect(), view会自适应的移动scene
3482
1645

被折叠的 条评论
为什么被折叠?