QmlDesigner: Set proper ownership on returned C++ object

Change-Id: Id9971cdec65bb84b310196ef84d0bccca9a12e57
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2024-04-22 17:01:20 +02:00
committed by Tim Jenssen
parent c351e8c9c7
commit 735d6af931

View File

@@ -274,6 +274,8 @@ PropertyEditorValue *DynamicPropertyRow::createProxyBackendValue()
auto *newValue = new PropertyEditorValue(this);
m_proxyBackendValues.append(newValue);
QQmlEngine::setObjectOwnership(newValue, QJSEngine::CppOwnership);
return newValue;
}