Question about custom implementation of ECMAScript primitives.
I am working on a QML integration with .NET.
I'd like to map .NET's
QVaraintListis loaded in QML, it is an array (
Array.isArray(obj) == true).
This is fine, except it means I have to enumerate my .NET type immediately, which can be a problem for large collections.
I'd like to expose my .NET type as if it is an array, but implement my own functions that simulate an array (
Can a qml script guru set my on the right track? Maybe use
QQmlV4Functionas an argument, and interface with the v8 engine directly?