diff options
author | kh1 <karsten.heimrich@digia.com> | 2014-11-13 13:48:21 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2014-11-17 11:53:13 +0100 |
commit | 8d0c5b2013f15f1fd08ff9b4d0ad5f113be13041 (patch) | |
tree | 569fdb4e4ec273953953a87a27f3d249671dc8aa /src/libs/installer/scriptengine.cpp | |
parent | 90b5c97525e04b25e62ed2898975b685f118ae82 (diff) |
Set the object ownership -before- adding the widget as property.
Change-Id: I0af2c4ae71bcf89466826024b8a2af4584d805be
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/scriptengine.cpp')
-rw-r--r-- | src/libs/installer/scriptengine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/installer/scriptengine.cpp b/src/libs/installer/scriptengine.cpp index 81316374c..428e95a8f 100644 --- a/src/libs/installer/scriptengine.cpp +++ b/src/libs/installer/scriptengine.cpp @@ -308,6 +308,7 @@ void ScriptEngine::addQObjectChildren(QObject *root) foreach (QObject *const child, children) { if (child->objectName().isEmpty()) continue; + QQmlEngine::setObjectOwnership(child, QQmlEngine::CppOwnership); jsParent.setProperty(child->objectName(), m_engine.newQObject(child)); addQObjectChildren(child); } |