From eaa3770f933a13fa4ae10091c2aedf3f12160f4d Mon Sep 17 00:00:00 2001 From: gaozheng Date: Thu, 11 Jun 2026 20:53:58 +0800 Subject: [PATCH] =?UTF-8?q?feat(app):=20qRegisterMetaType=20?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=EF=BC=88=E5=BC=82=E6=AD=A5=E4=BF=A1=E5=8F=B7?= =?UTF-8?q?=E5=85=83=E7=B1=BB=E5=9E=8B=EF=BC=8C=E9=98=B2=E5=BE=A1=E6=80=A7?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/main.cpp b/src/app/main.cpp index 105c8f2..b305b01 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -788,6 +788,10 @@ int main(int argc, char* argv[]) QSurfaceFormat::setDefaultFormat(QVTKOpenGLStereoWidget::defaultFormat()); QApplication app(argc, argv); + // 异步 ApiCall::finished 等信号携带 ApiResponse;注册元类型以支持跨 QueuedConnection 传递 + // (当前详情链路为同线程 DirectConnection,非严格必需,但作防御性注册,见 spec §5.1)。 + qRegisterMetaType(); + // 组织/应用名:QSettings 持久化(dock 布局、登录记忆等)按此定位存储位置。 QCoreApplication::setOrganizationName(QStringLiteral("Geomative")); QCoreApplication::setApplicationName(QStringLiteral("Geopro3"));