Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
qt.qpa.plugin error suddenly occurs after I remove Qt backup folder.
Aaron Kim last edited by Aaron Kim
Recently I struggled with correctly installing Qt again.
In this post, I managed to solve it by copying all the dlls which were correctly installed from the folder which was installed with offline installer (I'll call it "backup folder")
So, there were two folders, one was installed with online installer, and the latter one was done with offline one.
It seems that these two folders have no connection at all. So, I deleted the backup folder and I suddenly got the following 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.
It is quite disconcerting that the original one (online-installed) is affected by the backup one(offline-installed).
What can be the problem?
It is possible that your knowledget something else was working. Can you check the directory <QtInstall>/plugins/platform ? Does this exist ? Does it have windows.dll ?
This post is deleted!
@dheerendra Do you mean qwindows.dll & qwindowsd.dll? Or just windows.dll?
If you mean the latter one, it does not exist.
qwindows.dll & qwindowsd.dll in plugin directory ?
@dheerendra In Qt/5.11.3/mingw53_32/plugins/platforms
Ok.You have qwindows.dll & qwindowsd.dll in Qt/5.11.3/mingw53_32/plugins/platforms. Did you copy these from different installation ?
@dheerendra Maybe that would be the reason. I just installed the new one and it works. Thanks!
This is what I was suspecting. Since you copied from smoother place(which I knew), it caused the issue. Enjoy the Qt coding.