08-14-2012 09:23 AM
I have a ListView of StandardListCompoenet's which is created through a GroupDataModel in C++.
Post a button click, i have to change the text content from a row of the ListView based upon the row number typed by user in a text box.
Going as per GroupDataModel's API - updateItem(indexPath,QVariantMap), it can be done, provided i'm able to construct of get the indexPath.
There is a trigger(QVariantList) method of the ListView - which returns the indexPath of the element selected by user.
Since, in my code I only have the indexNumber of the row from user, is there a way I can construct the 'indexPath' for the 'updateItem' from my code itself.
Or should be there by any other strategy that would be opted instead of this?
Solved! Go to Solution.
08-15-2012 10:16 AM
08-15-2012 10:22 AM
Thanks for posting your solution.
Given the size of the list you are likely dealing with and that this is in response to a user action, this should perform fine. (Might not be scalable to extreme cases).