fix: 修复启动白屏与地图崩溃问题
- SetUseOpenGL(false): QGLWidget 在当前系统不兼容,改用软件渲染 - ExtensionHost_v2: 添加 contributionRegistry() getter 修复空指针 - main.cpp: 两阶段启动 (show → QTimer::singleShot → initialize) - mainwindow: 分离构造函数与 initialize(),结尾调用 onTabIndexChanged(3) - 修复 Qt DLL 部署:使用 windeployqt 确保运行时库版本匹配
This commit is contained in:
+4
-1
@@ -28,6 +28,7 @@ class ServiceRegistry;
|
||||
|
||||
class MenuBarUI;
|
||||
class MavLinkServiceBridge;
|
||||
class ContributionRegistry;
|
||||
|
||||
namespace mapcontrol { class OPMapWidget; }
|
||||
|
||||
@@ -64,6 +65,7 @@ public:
|
||||
ExtensionHost *extensionHost() const { return m_extHost; }
|
||||
PluginToolPanel *pluginToolPanel() const { return m_pluginPanel; }
|
||||
CommandRegistry *commandRegistry() const { return m_commandRegistry; }
|
||||
ContributionRegistry *contributionRegistry() const { return m_contributionRegistry; }
|
||||
ThemeManager *themeManager() const { return m_themeMgr; }
|
||||
|
||||
void toggleToolsPanel();
|
||||
@@ -104,7 +106,8 @@ private:
|
||||
PluginToolPanel *m_pluginPanel = nullptr;
|
||||
ThemeManager *m_themeMgr = nullptr;
|
||||
CommandRegistry *m_commandRegistry = nullptr;
|
||||
bool m_useNewToolsPanel = false;
|
||||
ContributionRegistry *m_contributionRegistry = nullptr;
|
||||
bool m_useNewToolsPanel = true;
|
||||
|
||||
mapcontrol::OPMapWidget *m_map = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user