We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
之前把 Qt 升到了 6.2 版本,deploy 打包时发现 SVG 图标显示不出来(在 Qt Creator 中启动应用是没问题的),一番探索后发现是 iconengines/qsvgicon.dll 没被加载。我不知道 Qt 6.2 版本对此有什么改动或者说我的 build 配置出了什么问题,不知道 PATH 为 Qt 安装目录时是怎么确定加载 iconengines 的。试过配置文件 qt.conf 和 QCoreApplication::addLibraryPath,没用。
iconengines/qsvgicon.dll
iconengines
qt.conf
QCoreApplication::addLibraryPath
试出的解决方法是,创建一个名为 plugins 的文件夹将 iconengines 放入其中。为了整洁把 platforms, styles 和 tls 也放了进去。新的打包文件结构如下:
plugins
platforms
styles
tls
B23Downloader.exe plugins: iconengines: [qsvgicon.dll] platforms: [qwindows.dll] styles: [qwindowsvistastyle.dll] tls: [qcertonlybackend.dll, qopensslbackend.dll, qschannelbackend.dll] libgcc_s_seh-1.dll ... Qt6Core.dll ...
The text was updated successfully, but these errors were encountered:
plugins/tls
qcertonlybackend.dll
qopensslbackend.dll
qschannelbackend.dll
Sorry, something went wrong.
No branches or pull requests
之前把 Qt 升到了 6.2 版本,deploy 打包时发现 SVG 图标显示不出来(在 Qt Creator 中启动应用是没问题的),一番探索后发现是
iconengines/qsvgicon.dll
没被加载。我不知道 Qt 6.2 版本对此有什么改动或者说我的 build 配置出了什么问题,不知道 PATH 为 Qt 安装目录时是怎么确定加载iconengines
的。试过配置文件qt.conf
和QCoreApplication::addLibraryPath
,没用。试出的解决方法是,创建一个名为
plugins
的文件夹将iconengines
放入其中。为了整洁把platforms
,styles
和tls
也放了进去。新的打包文件结构如下:The text was updated successfully, but these errors were encountered: