Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.11.0
-
None
Description
as also tested in an autotest, if i change the prototype for a qjsvalue, then all its properties become accessible to the parent qjsvalue, like:
QJSValue protoValue = eng->newQObject(newProto);
protoValue.setProperty("b", "Value 2");
globalObject.setPrototype(protoValue);
then globalObject.property("b") gets the expected value.
However, this doesn't work for the properties that are wrapped from a qobject, so, if newProto had defined some Q_PROPERTY of its own, those will not be accessible from globalObject, however globalObject.hasProperty() for those properties will return true, as they were accessible, which would be what's expected