Skip to content

v1.1.3 - 修复中文路径下 Qt 启动失败

Latest

Choose a tag to compare

@HelloMasonC HelloMasonC released this 31 Jul 07:16
· 2 commits to master since this release

v1.1.3 — Hotfix · 修复中文路径下 Qt 启动失败

🔧 修复

  • 修复开发者模式启动报错 qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
    • 根因:PyQt5 pip 包缺少 qt.conf,且 QLibraryInfo.location() 在中文路径下会返回含 ? 的乱码路径,导致 Qt 无法定位 platforms/qwindows.dll
    • 修复方案:改用 PyQt5.__file__(Python 原生正确处理 Unicode)推导插件路径,绕过乱码问题;同时将 Qt bin 目录加入 PATH 和 DLL 搜索目录
    • 现在 python main.pyuv run main.py 在中文路径下都能正常启动

📝 文档

  • README 下载按钮版本号徽章同步为 v1.1.3
  • 项目结构与 exe 文件名说明更新