On 04/12/12 18:04, Girish Ramakrishnan wrote:
> Hi,
> 
> On Thu, Apr 12, 2012 at 8:42 AM, Eckhard Jokisch <q...@eckhard-jokisch.de> 
> wrote:
>> Hi,
>> in my custom subclass of QAbstractItemModel the data() is not called
>> with any other role than Qt::SizeHintRole.
>>
> 
> Maybe you do, if (role = Qt::SizeHintRole) by mistake in the code
> 
> Without code, I cannot guess more :)
> 
> Girish
Thanks for that hint.
>From that I knew it must be something obvious that I simply do not see.

Making MyModel::rowCount()
{
int count;
.....
qDebug() << "rows" << QString("%1").arg(count);
return count;
}

revealed that this allways returned 0 ....

Time for a break and some (beer)

Eckhard
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to