self.setDragMode(QGraphicsView.ScrollHandDrag)
时间: 2024-02-02 20:49:48 浏览: 116
QGraphicsView Draw
3星 · 编辑精心推荐
This line of code sets the drag mode of a QGraphicsView object to "ScrollHandDrag". This means that the user can drag the view around by clicking and dragging with the mouse button, as if they were scrolling the view by hand. This is a common feature in image viewing or map applications.
阅读全文