09-04-2013 03:26 AM
I am trying to create following scenario,
A login screen on clicking button on login screen data should be read from file system and this data should be inserted into list and then this list is shown on screen.
I had create 2 qmls one for login screen and other containing listview.
But i am not able to find way of pushing list from C++.
Any information will be helpful.
09-04-2013 06:27 AM
09-05-2013 08:01 AM
Thanks for the reply. But what i want to do is ,
1) create a login screen this is created in QML
2) On clicking "Login" button a function in C++ class is called. This function reads the value from filesystem and parses the data. After parsing data i want to assing data to model which will be used in qml containing list.
3) Create a seprate qml for list view which will show data model filled in above point.
I had taken help from the below mentioned link to achieve this,
Let me know if you have any better solution as i am new to C++ programming.
09-06-2013 01:08 AM
Thanks for the link, i had read that link.
09-06-2013 01:40 AM
No problem no i am able to push qml which contains list from C++ code , below is the code which i am using and it is working fine, just wanted to know is it right way of doing,
QmlDocument *otherQml = QmlDocument::create("asset:///list/visitlist.qml")
Page *page= otherQml->createRootObject<Page>();
09-06-2013 03:19 AM
Thanks pranay for confirming.