all: ensure QObject ownership is Cpp when required

This commit is contained in:
outfoxxed committed 2024-03-08 18:33:01 -08:00
1 parent de8668eff3
commit 6966fc025c
4 files changed
+10 -3

No files matched your search

+2
View File
@@ -187,6 +187,8 @@ void SocketServer::onNewConnection() {
return;
}
QQmlEngine::setObjectOwnership(instance, QQmlEngine::CppOwnership);
this->mSockets.append(instance);
instance->setParent(this);