airbites
29th July 2009, 15:50
Hello,
I need an explanation about dataChanged() and beginInsertRows/endInsertRows().
I have implemented a model using QAbstractTableModel class and the model is editable; I'm not using setData() method to update the model but my own method that add or update an item to the model.
Can the method emit dataChanged() when item is inserted or I must use beginInsertRows/endInsertRows?
Or do both of beginInsertRows and endInsertRows emit dataChanged()?
Thank you a lot!
I need an explanation about dataChanged() and beginInsertRows/endInsertRows().
I have implemented a model using QAbstractTableModel class and the model is editable; I'm not using setData() method to update the model but my own method that add or update an item to the model.
Can the method emit dataChanged() when item is inserted or I must use beginInsertRows/endInsertRows?
Or do both of beginInsertRows and endInsertRows emit dataChanged()?
Thank you a lot!