Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.7.0
-
None
-
87d71b29a8c4239cb807f13ac9d009cef1ca1a69
Description
Since QObjectPrivate::declarative_data registers new QmlContext objects and tries to reuse them, the same objects will not be visible to other context's
--- a/src/declarative/qml/qmlobjectscriptclass.cpp +++ b/src/declarative/qml/qmlobjectscriptclass.cpp @@ -146,7 +146,7 @@ QmlObjectScriptClass::queryProperty(QObject *obj, const Identifier &name, QmlEnginePrivate *enginePrivate = QmlEnginePrivate::get(engine); QmlPropertyCache *cache = 0; - QmlDeclarativeData *ddata = QmlDeclarativeData::get(obj); + QmlDeclarativeData *ddata = 0; if (ddata) cache = ddata->propertyCache; if (!cache) {