def __init__(self, scene, parent):
super().__init__(scene, parent)
self.setAlignment(Qt.AlignLeft | Qt.AlignTop)
self.setDragMode(QtWidgets.QGraphicsView.RubberBandDrag)
self.setMouseTracking(True)
self.YScrollBar = QtWidgets.QScrollBar(Qt.Vertical, parent)
self.XScrollBar = QtWidgets.QScrollBar(Qt.Horizontal, parent)
self.setVerticalScrollBar(self.YScrollBar)
self.setHorizontalScrollBar(self.XScrollBar)
self.currentobj = None
self.setRenderHints(QtGui.QPainter.Antialiasing | QtGui.QPainter.SmoothPixmapTransform)
评论列表
文章目录