Terabyte
6th January 2009, 06:26
Hi, i've created a model, with 2 methods data and rowCount.
When i add data to my model, I call reset(); and then i see (by qDebug) that the overiden methods data() and rowCount() were sucessfully called.
Yet my QListView does not update.
Yes I did view->setModel(model) at the start.
Any help?
QVariant Session::data(const QModelIndex & index, int role) const
{
return QString("lk");
}
When i add data to my model, I call reset(); and then i see (by qDebug) that the overiden methods data() and rowCount() were sucessfully called.
Yet my QListView does not update.
Yes I did view->setModel(model) at the start.
Any help?
QVariant Session::data(const QModelIndex & index, int role) const
{
return QString("lk");
}