I fixed the slow issue, but theres a new problem.
My custom model has a reimplemented setData() :
Qt Code:
  1. bool RomList::setData(const QModelIndex &index, const QVariant &value, int role) {
  2. if(index.isValid() && role == Qt::DisplayRole ) {
  3. if(index.column() == 4) {
  4. int row = index.row();
  5. QStringList tmp = ROMs.at(row).split(";");
  6. tmp.replace(4, QString::number(value.toInt()));
  7. ROMs.replace(row, tmp.join(";"));
  8. emit dataChanged(index, index);
  9. return true;
  10. } else {
  11. return false;
  12. }
  13. }
  14. return false;
  15. }
To copy to clipboard, switch view to plain text mode 

All the table data loads from ROMs QstringList, so if i change some cell of column 4, it will be updated, but only works with some cells, some works, some doesn't work, its trange.

Here is the data change:
Qt Code:
  1. void RetroGC::incPlayed(QString stipo, QString sid, int num, int row) {
  2. QSettings romList(QString("Data/ROMLists/%1/%2.rgl").arg(stipo).arg(sid), QSettings::IniFormat);
  3. QStringList tmp = romList.value(QString("ROMS/%1").arg(num)).toString().split(";");
  4.  
  5. qint32 xt = gameList->index(row, 4).data(Qt::DisplayRole).toInt();
  6. xt++;
  7. tmp.replace(4, QString::number(xt));
  8. romList.setValue(QString("ROMS/%1").arg(num), tmp.join(";"));
  9. gameList->setData( gameList->index(row, 4), xt, Qt::DisplayRole );
  10. }
To copy to clipboard, switch view to plain text mode 


i've been 2 hours stucked and investigating, but i can't find where is the problem.