中文 | English
WidgetExplorer 是一个基于 Qt 插件框架的桌面应用程序。
- 插件属性配置
- 切换主界面插件
- 调用外部程序作为插件
- ...
- src 主程序WidgetExplorer,解析配置文件,完成初始化
- deps/WECore 生成wecore.dll,WidgetExplorer框架
- plugins/LightWidget 生成LightMain,轻量的MainWidget
- plugins/ExamplePlugin 生成ExamplePlugin.dll,示例插件
- Qt 6(需包含
core、gui、widgets模块)
-
**获取源码 **
git clone https://github.com/howdy213/WidgetExplorer.git cd WidgetExplorer -
准备 WECore 依赖
确保deps/WECore目录下包含 WECore 源码(可通过子模块或手动下载)。git submodule init git submodule update --init --recursive
-
使用 Qt Creator 打开
WidgetExplorer.pro
配置构建套件(Kit),并进行编译。 -
配置插件
根据需要编辑config/config.json和插件自身的配置文件(参见Release中plugins/下的示例),确保插件路径正确。 -
运行
编译后运行生成的可执行文件。程序会加载所有插件,若存在多个主界面插件,则弹出选择对话框。
- 整理项目框架
WidgetExplorer 使用 Apache License 2.0 开源许可证 详细信息请参阅项目根目录下的 LICENSE 文件。