Could not find the Qt platform plugin "windows"
-
wrote on 8 Sept 2020, 10:06 last edited by
I have a problem. When i'm trying to run a project through Qt i get this error:
qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Also note that the project compiles successfully.
-
I have a problem. When i'm trying to run a project through Qt i get this error:
qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Also it shows this window
Also note that the project compiles successfully.
wrote on 8 Sept 2020, 10:20 last edited by@Deathcomes
Set environment variableQT_DEBUG_PLUGINS=1
, either from command line and then invoke your executable, or from within Creator's run-time environment variables and run app from within Creator. Look at the output you will get, to see where the problem originates. -
wrote on 8 Sept 2020, 10:38 last edited by Deathcomes 9 Aug 2020, 15:06
It prints this
QFactoryLoader::QFactoryLoader() checking directory path "MY_PROJECT_PATH/release/platforms" ...
Is there a way to change this? It should by default be "C:\Qt\5.12.1\mingw73_64\plugins" right?
-
Hi,
Are you trying to run your application outside Qt Creator ? If so, did you proceed with the deployment procedure ?
-
Hi,
Are you trying to run your application outside Qt Creator ? If so, did you proceed with the deployment procedure ?
wrote on 8 Sept 2020, 20:45 last edited by@SGaist No inside.
-
wrote on 9 Sept 2020, 07:40 last edited by
Any ideas? If you want more details tell me.
-
Please show some patience and allow at least 24 hours before bumping your own thread. This is a voluntary driven forum and people answering here might not live in the same time zone as you.
Start your application with the QT_DEBUG_PLUGINS environment variable set to 1. It will log what happens with the plugin.
-
Please show some patience and allow at least 24 hours before bumping your own thread. This is a voluntary driven forum and people answering here might not live in the same time zone as you.
Start your application with the QT_DEBUG_PLUGINS environment variable set to 1. It will log what happens with the plugin.
wrote on 9 Sept 2020, 21:29 last edited by@SGaist Thank you! Already done that!
@Deathcomes said in Could not find the Qt platform plugin "windows":
It prints this
QFactoryLoader::QFactoryLoader() checking directory path "MY_PROJECT_PATH/release/platforms" ...
Is there a way to change this? It should by default be "C:\Qt\5.12.1\mingw73_64\plugins" right?
Is there a way to config this path? It should already be fine (tried it on other projects and it works ok (only difference is qt version)) but it seems not.
-
wrote on 10 Sept 2020, 01:57 last edited by
Have you put any other file to "MY_PROJECT_PATH/release" folder?
What if you completely delete that folder and try again? -
wrote on 10 Sept 2020, 17:14 last edited by
@Bonnie I always leave that folder as it so that i don't "break" something. I will check it although!
-
wrote on 11 Sept 2020, 18:49 last edited by
@Bonnie I checked it and the same thing happens.
-
wrote on 11 Sept 2020, 19:34 last edited by
Hi, if you try run another Qt project from inside Qt Creator, like one of Qt's examples, do you get the same error?
-
Hi, if you try run another Qt project from inside Qt Creator, like one of Qt's examples, do you get the same error?
wrote on 13 Sept 2020, 09:54 last edited by Deathcomes@hskoglund Theoretically no because i have another project (although with Qt5.2.1) which compiles and runs (from inside Qt) perfectly.
Should i try to test with a new project with 5.12.1? -
wrote on 13 Sept 2020, 14:44 last edited by
Yes, try an example project with 5.12.1.
-
wrote on 14 Sept 2020, 14:46 last edited by
@hskoglund Same thing happens with a new one.
-
Do you have other versions of Qt installed on your system ? For example by other applications ?
-
Do you have other versions of Qt installed on your system ? For example by other applications ?
wrote on 14 Sept 2020, 18:50 last edited by Deathcomes -
I meant: check your system for other Qt version that may have been installed along any of your applications.
-
I meant: check your system for other Qt version that may have been installed along any of your applications.
wrote on 14 Sept 2020, 19:59 last edited by@SGaist Ow! Sorry! How do i check that?
-
I meant: check your system for other Qt version that may have been installed along any of your applications.
wrote on 14 Sept 2020, 21:00 last edited by Deathcomes@SGaist I searched but i didn't find any.
1/24