feat/vtk-3d-view #7

Merged
gaozheng merged 301 commits from feat/vtk-3d-view into main 2026-06-27 18:43:52 +08:00
1 changed files with 3 additions and 4 deletions
Showing only changes of commit 2e4e4b24e4 - Show all commits

View File

@ -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) {