From 2e4e4b24e4dac4518fb2661e0f3137b344a31bd3 Mon Sep 17 00:00:00 2001 From: gaozheng Date: Thu, 25 Jun 2026 11:18:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(login):=20=E9=AA=8C=E8=AF=81=E7=A0=81?= =?UTF-8?q?=E5=9B=BE=E5=8E=9F=E5=B0=BA=E5=AF=B8=E6=B8=85=E6=99=B0=E6=98=BE?= =?UTF-8?q?=E7=A4=BA(=E5=8E=BB=E6=94=BE=E5=A4=A7=E7=BC=A9=E6=94=BE,?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E7=B3=8A=E5=AF=BC=E8=87=B4=E7=9C=8B=E9=94=99?= =?UTF-8?q?=E5=AD=97=E7=AC=A6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/login/LoginWindow.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/login/LoginWindow.cpp b/src/app/login/LoginWindow.cpp index 8f2b076..cd9b192 100644 --- a/src/app/login/LoginWindow.cpp +++ b/src/app/login/LoginWindow.cpp @@ -250,10 +250,9 @@ void LoginWindow::refreshCaptcha() pix.loadFromData(QByteArray::fromBase64(b64)); } if (pix.isNull() && !cap.code.isEmpty()) pix = renderCaptchaPixmap(cap.code); - captchaLabel_->setPixmap( - pix.isNull() ? pix - : pix.scaled(captchaLabel_->size(), Qt::KeepAspectRatio, - Qt::SmoothTransformation)); + // 原尺寸显示(后端图约 88x40),不再放大缩放——放大会糊导致看错验证码字符。 + captchaLabel_->setScaledContents(false); + captchaLabel_->setPixmap(pix); refreshBtn_->setEnabled(true); }); connect(l, &geopro::net::CaptchaLoad::failed, this, [this, l](const QString& msg) {