[Qt-interest] Proxy model with more indexes than its source model
Jugdish
jugdizh at gmail.com
Mon Feb 8 19:22:02 CET 2010
Ahh you're right, I was thinking that it was virtual in QAbstractItemModel
but not in QAbstractProxyModel. My inexperience with C++ is showing...
On Mon, Feb 8, 2010 at 6:03 PM, Alexandre Beraud <aberaud at infflux.com>wrote:
> Hi,
>
> data() IS virtual (see QAbstractItemModel: virtual QVariant *data
> <qabstractitemmodel.html#data>* ( const QModelIndex & /index/,
> int /role/ = Qt::DisplayRole ) const = 0). Otherwise there would be no
> point is subclassing QAbstractItemModel.
>
> Regards,
>
> Alex
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100208/a77bc719/attachment.html
More information about the Qt-interest-old
mailing list