Probably most of the people that has experience with Qt5
libraries will say that I should copy qwindows.dll
to myappfolder/platforms/qwindows.dll
.
That was already made and working flawlessly.
The problem is that I've registered the extension of my files with that app and when I double click to open a file the app crashes since it cannot find that qwindows.dll
.
Desesperatly also I tried without luck this code:
QApplication::addLibraryPath(QCoreApplication::applicationDirPath());
QDir::setCurrent(QCoreApplication::applicationDirPath());
QApplication::addLibraryPath("./");
QString sDir = QCoreApplication::applicationDirPath();
QApplication::addLibraryPath(sDir);
QApplication::addLibraryPath(sDir+"/plugins/");
QApplication::addLibraryPath(sDir+"/platforms/");
But I had no luck neither.
Any tip?
As I wrote in the comments this is not the same a the deploy issue since the .exe opens fine if it gets open directly.