Hello,

In the docs to QPluginLoader:

Once loaded, plugins remain in memory until all instances of QPluginLoader <qpluginloader.html> has been unloaded, or until the application terminates.

But in plugandpaint example:

//![6]

foreach(QStringfileName,pluginsDir.entryList(QDir::Files)){

QPluginLoaderloader(pluginsDir.absoluteFilePath(fileName));

QObject*plugin=loader.instance();

if(plugin){

populateMenus(plugin);

pluginFileNames+=fileName;

//![6]//![7]

}

//![7]//![8]

}

So my question is why plugins keep alive when QPluginLoaders' will be 
destructed?

Or in Qt somewhere is static global QPluginLoader that keeps all plugins alive? 
Or something yet?

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to