58 QDir moduleDir( modulePath );
59 moduleDir.setSorting( QDir::Name | QDir::IgnoreCase );
60 moduleDir.setFilter( QDir::Files );
62 #if defined(Q_OS_WIN) || defined(__CYGWIN__)
63 moduleDir.setNameFilters( QStringList(
"*.dll" ) );
65 moduleDir.setNameFilters( QStringList(
"*.so" ) );
70 const auto constFiList( moduleDir.entryInfoList() );
71 for (
const QFileInfo &fi : constFiList )
93 QLibrary lib( location );
95 qDebug() << QString(
"Loading native module %1" ).arg( location );
105 if ( entryPointFunc )
115 mModules.insert( location, ModuleTable::mapped_type( entry ) );
135 ModuleTable::iterator it = mModules.begin();
136 const ModuleTable::iterator end = mModules.end();
140 unloadModuleEntry( it->get() );
150 const ModuleTable::iterator item = mModules.find( location );
151 if ( item != mModules.end() )