Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
Description
In Qt Script it was possible to use these:
https://doc.qt.io/qt-5/qscriptclass.html#property
https://doc.qt.io/qt-5/qscriptclass.html#queryProperty
to handle unknown properties (or indices!) in a custom way. For example this could be used to create an object that adapts dynamically to something else.
In QJSEngine there does not appear to be any support for this currently. Only statically defined properties seem possible (defineProperty).