[Interest] JSONListModel with Qt5

Shantanu Tushar shaan7in at gmail.com
Fri Oct 17 08:51:29 CEST 2014


[please CC me to replies, I'm not subscribed]

Hi folks,

Given that Qt5 does have JSON support in C++, is there any specific reason
why a JSONListModel doesn't exist in QML? Further, given that is the case,
I have the following options-

* Make network calls and parse JSON in a C++ model
* Use https://github.com/kromain/qml-utils/

The first option would need quite some work and if I go that way, maybe
I'll just create a generic JSONListModel myself. However, the second method
does all the parsing in JavaScript itself (and works pretty well, I'm using
it for now). Given that JSON is built-in to the language, I am wondering if
its faster to do it in QML/JS than doing it in a C++ model?

Or is there another preferred way? Help me decide :)

Cheers,
-- 
Shantanu Tushar    (UTC +0530)
http://www.shantanutushar.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20141017/a3342f35/attachment.html>


More information about the Interest mailing list