connect(d
->model,
SIGNAL(rowsInserted
(QModelIndex,
int,
int)),
connect(d
->model,
SIGNAL(rowsAboutToBeRemoved
(QModelIndex,
int,
int)),
this,
SLOT(rowsAboutToBeRemoved
(QModelIndex,
int,
int)));
connect(d->model, SIGNAL(dataChanged(QModelIndex,QModelIndex)),
this, SLOT(dataChanged(QModelIndex,QModelIndex)));
connect(d->model, SIGNAL(rowsInserted(QModelIndex,int,int)),
this, SLOT(rowsInserted(QModelIndex,int,int)));
connect(d->model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)),
this, SLOT(rowsAboutToBeRemoved(QModelIndex,int,int)));
To copy to clipboard, switch view to plain text mode
What I would try is to disconnect those connections, connect rowsInserted() and dataChanged() to my own slot to collect changed/inserted rows, and then in some slot called on QTimer timeout() just simply call proper slot in the view, and clear own changed/inserted collection.
Bookmarks