07-10-2013 12:49 AM
I am trying to obtain the QString from this item object but I am unable to does anyone know how I can obtain the item property values ?
Solved! Go to Solution.
07-10-2013 12:59 AM
IT RETURNS to me 6 undefined items which happens to be the number of items i have in the database query that has been tested in c++ for before and after insertion into the model.
07-10-2013 03:11 AM
07-10-2013 03:51 AM
Nah I figured it out I made a mistake with the properties,
Q_PROPERTY(QString ID READ getID WRITE setID);
The read and write are functions that the qml engine uses to communicate with c++ and act as a wrapper for that ID property.
and the c++ property m_ID is independent of Qml so I just replace it with ID instead of getID and it works