01-15-2013 09:22 PM
01-15-2013 09:40 PM
did you look at the datasource class?
look at the samples that uses datasource and replace the source to your json file.
one advice: if you don't feel like investing time in c++/Qt, then don't bother going native/cascades as it will only get worse...you simply cannot avoid the c++ code when going native!!
webworks should be decent enough by now. You can also try other alternatives like blackberry-py (uses python code instead of c++, UI still in QML).
01-15-2013 09:52 PM - edited 01-15-2013 09:52 PM
Thanks so much for that. saw it. But I think I cannot handle that json data very much. like looping to it manually.
I really want to learn C++ instead of purely QML because the syntax is pretty much little the same like Java & C#.
And I made this worked now:
Page *root = new Page;
ListView *listView = new ListView;
GroupDataModel *model = new GroupDataModel(QStringList() << "firstName" << "lastName");
QVariant list = jda.load(QDir::currentPath() + "/app/native/assets/employees.json");
qDebug() << "qvariant:" << list;
I've searched for errors and fixed it. and now works great.!! the problem I am having now is the qDebug() not printing to the console. I already have updated my IDE.. now what to do guys. please?
01-15-2013 10:06 PM
I can now see debug messages.
01-16-2013 02:37 AM