I just realized that (according to some QML Bugreport) there is JSON Delegate for ListView missing. So I have two choices, fill it up by model created in Javascript or C++
Specially I need to download .json data from predefined URL and parse them to ListView.
I tried to create object array in Javascript and push assoc array to ListView as Model, but it failed. No matter how i modified the code.
So is there only C++ solution or I can make ListView model by Javascript?
Thanks
Code I tried:
return [{"name":"value"}]
return {"name":"value"}
return [["name","value"]]
The issue was always: ReferenceError: Can't find variable: name