Hi everyone,
I am using a ListView that is supposed to display different type of data so it needs different delegates according to data’s type.
What I did is that the delegate is a Loader that will load a component based on the type of the data. This works well but every time I remove an item from the model ( a custom QAbstractListModel ) I get a Cannot read property ‘X’ of null. This does not happen if I don’t use a Loader but the same delegate for every type of data.
Does anyone have a suggestion for me ?
I do follow the beginInsertRows…endInsertRows scheme in the model.
↧