You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
This application failed to start because no Qt platform plugin could be initialized. #203
After compiled the PythonQt, we try to run the example program PyGuiExample.exe in the lib directory, and we've gotten the following error. What's wrong with our program? Thanks in advance.
This looks like your Qt installation is not found, or the wrong one is found. Have you checked that the plugins/platforms directory exists in the path of the Qt binaries, and that the Qt binaries are in the PATH?
@mrbean-bremen Thank you.
After added the user environment variable QT_QPA_PLATFORM_PLUGIN_PATH (value: C:\Application\Qt\5.15.2\msvc2019_64\plugins\platforms), the issue is fixed.
Activity
mrbean-bremen commentedon Apr 8, 2024
This looks like your Qt installation is not found, or the wrong one is found. Have you checked that the
plugins/platformsdirectory exists in the path of the Qt binaries, and that the Qt binaries are in the PATH?huskier commentedon Apr 8, 2024
@mrbean-bremen Thank you.
After added the user environment variable QT_QPA_PLATFORM_PLUGIN_PATH (value: C:\Application\Qt\5.15.2\msvc2019_64\plugins\platforms), the issue is fixed.
mrbean-bremen commentedon Apr 8, 2024
Ah, good to know. I'm converting this into a discussion issue, as it may help others.