C++ (Qt)QStringList paths = QApplication::libraryPaths(); paths.append("."); paths.append("platforms"); paths.append("imageformats"); paths.append(dllDir.absolutePath()); paths.append(dllDir.absolutePath() + "/platforms"); paths.append(dllDir.absolutePath() + "/imageformats"); QApplication::setLibraryPaths(paths);