[Interest] Model::data() only called with role == Qt::sizeHintRole

Girish Ramakrishnan girish at forwardbias.in
Thu Apr 12 18:04:00 CEST 2012


Hi,

On Thu, Apr 12, 2012 at 8:42 AM, Eckhard Jokisch <qt at 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



More information about the Interest mailing list