all: ensure QObject ownership is Cpp when required

This commit is contained in:
outfoxxed 2024-03-08 18:33:01 -08:00
parent de8668eff3
commit 6966fc025c
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
4 changed files with 10 additions and 3 deletions

View file

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