02-13-2013 01:16 PM
I have a list view:
ListView *listView = new ListView(); SchoolListFactory *schoolListFactory = new SchoolListFactory(); GroupDataModel *model = new GroupDataModel(); model->setGrouping(ItemGrouping::None);
The data is populated from SQL. In the SQL I have a field called 'difficulty'.
I was wondering, how can I arrange the list view by difficulty. So there is a number of options under easy, some under medium etc.
Much like the name list here:
I've looked at the docs but can only seem to find QML examples. Does anyone know how to do this in C++?
02-13-2013 01:29 PM - edited 02-13-2013 01:30 PM
You can find answer in the bottom of this article.