MCPcopy
hub / github.com/PyQt5/PyQt / mouseReleaseEvent

Method mouseReleaseEvent

Demo/ProbeWindow.py:71–78  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

69 self.setCursor(Qt.CrossCursor)
70
71 def mouseReleaseEvent(self, event):
72 super(Label, self).mouseReleaseEvent(event)
73 self.ismd = False
74 self.frameWidget.setRect(0, 0, 0, 0)
75 # 设置鼠标样式为普通
76 self.setCursor(Qt.ArrowCursor)
77 self.clear()
78 self.setText('鼠标按住不放拖动到外面')
79
80 def mouseMoveEvent(self, event):
81 super(Label, self).mouseMoveEvent(event)

Callers

nothing calls this directly

Calls 3

setRectMethod · 0.80
clearMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected