Fix Qt ownerships.

This commit is contained in:
Mikaël Capelle
2022-04-27 19:43:10 +02:00
parent f904e25e76
commit d0e883fd90
13 changed files with 213 additions and 34 deletions
+6 -1
View File
@@ -169,7 +169,12 @@ QList<QObject*> ProxyPython::load(const QString& identifier)
if (!m_Runner) {
return {};
}
return m_Runner->load(identifier);
auto plugins = m_Runner->load(identifier);
for (auto* plugin : plugins) {
plugin->setParent(this);
}
return plugins;
}
void ProxyPython::unload(const QString& identifier)