07-12-2012 03:43 PM
How can I read data from a SQLite table and display it on a ListView without the GroupDataModel. I do not want my list to be grouped.
Solved! Go to Solution.
07-12-2012 11:19 PM
You don't actually have to group it, just do it this way
GroupDataModel* dm = new GroupDataModel(QStringList() << "item_id");
dm->setGrouping(ItemGrouping::None);
Hope it helps
07-13-2012 01:59 AM
If you have a mixture of both QML and C++ then you can also use other Model types.
In the end it should be only converted to QVariant* type for it.
"
A DataModel can come in a number of different forms, including XmlDataModel (data from an XML file), QListDataModel (a QList containing QVariant objects), and GroupDataModel (QVariantMap objects and/or QObject pointers).
ListView takes ownership of any QObject objects (wrapped in QVariant) returned by DataModel::data(), unless those objects already have parents."
Option2 : if its totally c++ based, then you get the full control through the ListItemManager
07-13-2012 04:18 PM
Have you looked at these knowledge base articles?
Martin
07-23-2012 08:36 AM
Any progress on this front?