Solved Loading custom plugin in the release mode
-
Please advise, I wrote the custom plugin. In the debug mode all works fine. But when the plugin and application are compiled in the release mode, the application not loads plugin
auto pluginLoader = new QPluginLoader(pluginsDir.absoluteFilePath(fileName), this); auto plugin = pluginLoader->instance(); qDebug() << pluginsDir.absoluteFilePath(fileName) << plugin;
-
Hi,
Set the
QT_DEBUG_PLUGINS
environment variable to 1 before running your application. You'll get some clues about what is happening.You can to that in the Run part of the Project panel.
-
@SGaist
hehe, I forgot place third party DLL in the bin folder (release) - there were in it for debug mode. Issue is closed, thank you