diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2016-05-18 10:38:34 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-05-20 18:18:20 +0000 |
commit | 45ff4f161396983031d0bd70820dcbaaabc12fd0 (patch) | |
tree | 071791ad46e5e7c4566f709de459d78a7502a179 /examples/qt3d/scene3d | |
parent | b8e6376df567dafda8c6b9015c9e87972351edf6 (diff) |
Pass the static meta object to the creation changes
Unfortunately we can't rely upon QObject::metaObject() because the
dynamic metaobjects created by QML may well get destroyed before the
Qt 3D backend has had time to use the metaobjects to lookup the node
mappers for deleting the backend nodes.
QMetaObject at this time has no way of determining if it is a static
or dynamic metaobject so we have to take the same approach as GammaRay
and walk up the QMetaObject::superData() chain to find the most
"derived" metaobject without a dynamic metaobject above it.
Task-number: QTBUG-42353
Change-Id: Ifb8512c75241a7a2d8035dd7384a589e1b9844d9
Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
Diffstat (limited to 'examples/qt3d/scene3d')
0 files changed, 0 insertions, 0 deletions