Implementing QAbstractTableModel
-
[quote author="Andre" date="1318239693"]Indeed, it is pure virtual (normal virtual methods would work, of course). I guess this was just a matter of habbit from Gerolf to call base implementations as the default case; and a good habbit that is too! :-)[/quote]
aeh, yep, I did not test it otherwise I would have seen that :-) sorry.
a return of an empty variant should be it. -
Well, it still doesn't solve my problem :-) How can I tell to the view that data are invalid? When I am using just simple List, I just call beginInsertRows and endInsertRows. It works ok and data method is requested for row 0,1,2.
I have tried calling beginResetModel each time before values are set but all it does is that it calls data method once with index of column 0 and row 0.
I gues I will have to use just simple list of QString and return whole rows in data method...