Performance issue with accessing QVariantMap in QML
tuanster last edited by
I have a simple component that reads in a JSON file, then passes it to a QScriptEngine and returns a QVariant (which is actually a QVariantMap) in a C++ plugin. In my QML code, I can access the returned value using scripting notation.
The issue then is that the access time into the script object becomes increasingly longer as the JSON file gets bigger. Therefore the application performance deteriorates in a hurry.
I really don't want to break up my JSON file into several smaller ones.
What's the best way to solve this issue?
Thanks for any help provided.