![]() Unfortunately, I have no idea how to do the same in a native QML project. In WebWorks you'd need to declare an element in your application config.xml file for the domain(s) you wish to access. I think that the problem is in the cross-domain request which isn't allowed by default. import bb.cascades 1.0Ĭonsole.log(JSON.stringify(data)) //just for testingĪlso the Twitter API you were using is no longer available so check REST API v1.1 Resources or you will get the following error: If I were you I would download JSON through c++. Also, read DataSource and JsonDataAccess. For this example you only need LIBS += -lbbdata in your. I don't have access to Twitter API, so I can't test it properly for you. Where i am wrong ? or i have to declare some thing else pro file i have declared CONFIG += qt warn_on cascades10 pass “doc.responseText” to C++ for Parsing ![]() HorizontalAlignment: HorizontalAlignment.Center ![]() VerticalAlignment: VerticalAlignment.Center I know there is network manager in QT which i can use but in my situation i want to parse inside QML // Default empty project template actually on Button clicked nothing happens. The issue am facing is i am not getting into if statement. but for this code i am just printing "OK" inside label upon success i want that when i click on button a request must be sent which get the Json from the given link and print on label. In the given code i have used one label and one button.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |