[Solved]Problem with my .exe
-
I'm having problem when I execute my app in a machine that doesn't have QT on it. I create a folder with my .exe and this dlls:
libgcc_s_dw2-1.dll
mingwm10.dll
QtCore4.dll
QtGui4.dllThe problem is with the images, it doesn't show anyone in a machine without QT.
Any suggest?
Thanks and sorry for my horrible english. -
ok but is it in the correct sub directory, here is a link for windows.
"Sub directory is imageFormats":https://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html#qt-plugins
-
Thank you for help me, I solved my problem by doing this:
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QString directorioactual;
directorioactual = QDir::currentPath();
QString sDir = QCoreApplication::applicationDirPath();
a.addLibraryPath(sDir+"/plugins");
a.addLibraryPath(directorioactual);
MainWindow w;
w.showMaximized();return a.exec();
}
Note: directorioactual is in spanish if you don't understand
Note 2, I put in the folder with my .exe the image format dll's