From 80aec75f8ffc268664c727c8033bcf3b992f06c5 Mon Sep 17 00:00:00 2001 From: impressionyang Date: Wed, 13 May 2026 18:05:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Qt=205.12=20?= =?UTF-8?q?=E4=B8=AD=20QThread::create()->start()=20=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E8=AF=AD=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit QThread::create() 返回 QThread*,需用 ->start() 而非 .start() Co-Authored-By: Claude Opus 4.6 --- src/core/win_hotkey.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/win_hotkey.cpp b/src/core/win_hotkey.cpp index 48d9354..a49e245 100644 --- a/src/core/win_hotkey.cpp +++ b/src/core/win_hotkey.cpp @@ -226,7 +226,7 @@ void CapsLockVoiceHotkey::onHotkeyEvent(int /*hotkeyId*/) { QThread::msleep(50); } impl_->pollThreadRunning = false; - }).start(); + })->start(); } #endif