QStringList list_path; QDir dir = QDir(a.applicationDirPath()+"/sqldrivers/"); list_path << dir.absolutePath () << a.libraryPaths(); a.setLibraryPaths( list_path );