no Qt platform plugin could be initialized.
-
wrote on 15 Feb 2024, 07:46 last edited by
Hi,
My environment is below,
Win11 + Desktop Qt 6.5.0 MSVC2019 64bit.I created a very simple main-window, and built this program in my release-build folder.
When starting my exe file in my release-build folder, it complians "This application failed to start because no Qt platform plugin could be initialized".
May I know how I could solve this issue?
Thanks.
Have a nice day. -
Hi,
My environment is below,
Win11 + Desktop Qt 6.5.0 MSVC2019 64bit.I created a very simple main-window, and built this program in my release-build folder.
When starting my exe file in my release-build folder, it complians "This application failed to start because no Qt platform plugin could be initialized".
May I know how I could solve this issue?
Thanks.
Have a nice day.@Wunian If you want to start your application outside of QtCreator you need to deploy it.
See https://doc.qt.io/qt-6/windows-deployment.html -
Hi,
My environment is below,
Win11 + Desktop Qt 6.5.0 MSVC2019 64bit.I created a very simple main-window, and built this program in my release-build folder.
When starting my exe file in my release-build folder, it complians "This application failed to start because no Qt platform plugin could be initialized".
May I know how I could solve this issue?
Thanks.
Have a nice day.wrote on 15 Feb 2024, 19:26 last edited by JoeCFD@Wunian or you set env QT_PLUGIN_PATH to Qt plugin path?
https://doc.qt.io/qt-6/deployment-plugins.html -
@Wunian If you want to start your application outside of QtCreator you need to deploy it.
See https://doc.qt.io/qt-6/windows-deployment.htmlwrote on 16 Feb 2024, 02:51 last edited by@jsulm
Thanks for your reply and help.
It works now when I refer what you mentioned, and https://medium.com/theskyisblue/在-windows-中-deploy-qt-apps-cf4054a5ee58Have a nice day.
-
@Wunian or you set env QT_PLUGIN_PATH to Qt plugin path?
https://doc.qt.io/qt-6/deployment-plugins.html -
1/5