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

Method leaveEvent

Demo/WindowNotify.py:154–160  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

152 self.setFocus(Qt.MouseFocusReason)
153
154 def leaveEvent(self, event):
155 super(WindowNotify, self).leaveEvent(event)
156 # 取消焦点
157 print("leaveEvent clearFocus")
158 self.clearFocus()
159 if self._timeouted:
160 QTimer.singleShot(1000, self.closeAnimation)
161
162
163if __name__ == "__main__":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected