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:
@@ -0,0 +1,29 @@
|
||||
#ifndef LOGGINGPLUGIN_H
|
||||
#define LOGGINGPLUGIN_H
|
||||
|
||||
#include "IPlugin.h"
|
||||
#include <QIcon>
|
||||
#include <QWidget>
|
||||
|
||||
class LoggingPlugin : public QObject, public IPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "com.gcs.IPlugin/3.0" FILE "plugin.json")
|
||||
Q_INTERFACES(IPlugin)
|
||||
|
||||
public:
|
||||
QString name() const override { return QStringLiteral("logging"); }
|
||||
QString title() const override { return QStringLiteral("Logging"); }
|
||||
QString version() const override { return QStringLiteral("2.0.0"); }
|
||||
QString description() const override { return QStringLiteral("Unified logging system with viewer"); }
|
||||
QIcon icon() const override { return {}; }
|
||||
|
||||
bool initialize(PluginContext *) override;
|
||||
void onActivated() override {}
|
||||
void onDeactivated() override {}
|
||||
void onClose() override {}
|
||||
|
||||
QWidget *createWidget(QWidget *parent = nullptr) override;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user