MCPcopy Index your code
hub / github.com/PyQt5/PyQt / __init__

Method __init__

QGraphicsView/DragGraphics.py:61–65  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

59class GraphicsView(QGraphicsView):
60
61 def __init__(self, *args, **kwargs):
62 super(GraphicsView, self).__init__(*args, **kwargs)
63 self.setAcceptDrops(True)
64 self._scene = QGraphicsScene(self) # 场景
65 self.setScene(self._scene)
66
67 def dragEnterEvent(self, event):
68 """判断拖入的数据是否支持"""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected