01-09-2013 07:10 AM
When we should use QlistDataModel.
01-09-2013 07:33 AM - edited 01-09-2013 07:38 AM
GroupDataModel and ArrayDataModel are the most often used ones.
GroupDataModel has built-in sorting functionality.
QListDataModel is similar to ArrayDataModel but operates on concrete items, not QVariants. Item type is specified as a template parameter. Item type which is supplied as template parameter must be convertible to QVariant.
In most cases ArrayDataModel can be used instead of QListDataModel.
Check the details here:
Sorted data models:
https://developer.blackberry.com/cascades/document
Unsorted:
https://developer.blackberry.com/cascades/document
QListDataModel:
https://developer.blackberry.com/cascades/referenc