Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void QCoreApplication::setLibraryPaths ( const QStringList paths  )  [static, inherited]

Sets the list of directories to search when loading libraries to paths. All existing paths will be deleted and the path list will consist of the paths given in paths.

See also:
libraryPaths(), addLibraryPath(), removeLibraryPath(), QLibrary

Definition at line 2090 of file qcoreapplication.cpp.

{
#if !defined(QT_NO_LIBRARY) && !defined(QT_NO_SETTINGS)
    QMutexLocker locker(libraryPathMutex());
    if (!coreappdata()->app_libpaths)
        coreappdata()->app_libpaths = new QStringList;
    *(coreappdata()->app_libpaths) = paths;
    QFactoryLoader::refreshAll();
#endif
}


Generated by  Doxygen 1.6.0   Back to index