"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" help me plz
Solved
Qt 6
-
When debugging the program in VS, I encounter an error message: "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." The release version runs fine, but why does this error occur in the debug version? Could you please explain the reason and provide a solution? Thanks!
-
@Teemo-of-LOL maybe because you compiled for release?
-
@Ronel_qtmaster
"I'm sorry. I didn't understand. The release works fine with VS2022. However, when running in debug mode, the mentioned error occurs. Even after setting the environment variables as suggested online, it doesn't get fixed." -
@Teemo-of-LOL maybe because you compiled qt for release version
-