PDA

View Full Version : Slow update in QAbstractTableModel in setData



cevou
20th May 2010, 13:43
Hi,

I created my own table model which fetches data from a database. After I call emit dataChanged(index,index) the model updates all table cells, which takes very long for all the records.
Is it possible to only "refresh" the updated cell or is there any other way to get better performance for this?

MorrisLiang
20th May 2010, 14:44
I don't understand,shouldn't dataChanged(index1,index2) only affects those indices between index1 and index2?

cevou
20th May 2010, 15:04
That's what I thought. But it re-fetches all the data from the database.