Hello. I have a plugins folder next to the executable, in which the plugins are located, each in a separate folder, and the folder name matches the plug-in name. So, I need to get a list of all these plugins. I myself do this:
QDir pluginsDir = QDir::current(); pluginsDir.cd("plugins"); for(const QString& dir : pluginsDir.entryList(QDir::Dirs | QDir::NoDotAndDotDot)) { //Это так получаю имя файла QString pluginName = pluginsDir.absolutePath() + "/" + dir +"/" + dir + ".dll"; /* ... */ }
Here pluginsDir.entryList (...) will return a list of all folders. The question arose: is there any other way to get a list of all plugins?