MCPcopy Create free account
hub / github.com/PyQt5/PyQt / mousePressEvent

Method mousePressEvent

QSplitter/RewriteHandle.py:34–38  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

32 self.setMouseTracking(True)
33
34 def mousePressEvent(self, event):
35 super(SplitterHandle, self).mousePressEvent(event)
36 if event.pos().y() <= 24:
37 # 发送点击信号
38 self.clicked.emit()
39
40 def mouseMoveEvent(self, event):
41 """鼠标移动事件"""

Callers

nothing calls this directly

Calls 1

yMethod · 0.80

Tested by

no test coverage detected