c++ - Fetching the data from stackmob BlackBerry-10 -
currently have code here
}else if (currenturl == "http://api.stackmob.com/issue" && post == "no"){ setgroupdatamodel(response, "desc"); qdeclarativepropertymap* propertymap = new qdeclarativepropertymap; propertymap->insert("name", currentprojectnameselected); qmldocument *qml = qmldocument::create("asset:///projectissues.qml").parent(this); qml->setcontextproperty("cppobj", propertymap); //qml->setcontextproperty("cppobj", this); page* root = qml->createrootobject<page>(); pane->push(root);
whenever use ("cppobj", this); displays items stackmob in listview name of label in qml not displayed. however, when use ("cppobj", propertymap) doesnt display listview stackmob displays label of qml. should do?
without having qml, can't sure, need way access both propertymap
, instance qml. right now, you're trying set both "cppobj" name. try use explicit names "issuemodel", "modelproperties", or whatever. if use different name, you'll able access both qml.
Comments
Post a Comment