From 7781fc0f9d05b8315966302e32e4d4dcc09b4998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Wed, 19 Jun 2024 11:03:48 +0800 Subject: [PATCH] cursor --- LunaTranslator/LunaTranslator/gui/usefulwidget.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LunaTranslator/LunaTranslator/gui/usefulwidget.py b/LunaTranslator/LunaTranslator/gui/usefulwidget.py index ba4038fe..6c33536e 100644 --- a/LunaTranslator/LunaTranslator/gui/usefulwidget.py +++ b/LunaTranslator/LunaTranslator/gui/usefulwidget.py @@ -317,6 +317,10 @@ class resizableframeless(saveposwindow): self._move_drag = True self.move_DragPosition = gpos - self.pos() + def leaveEvent(self, a0) -> None: + self.setCursor(Qt.CursorShape.ArrowCursor) + return super().leaveEvent(a0) + def mouseMoveEvent(self, event): # 判断鼠标位置切换鼠标手势