Quote Originally Posted by anda_skoa View Post
ok, but does that mean new rows in the model or just data in existing rows changing?


Qt Code:
  1. const int affectedRow = ....;
  2.  
  3. const QModelIndex changedIndex = index(affectedRow, 0);
  4.  
  5. emit dataChanged(changedIndex, changedIndex); // if all roles changed or if you don't know which roles
To copy to clipboard, switch view to plain text mode 

Cheers,
_
I think this:
1) If I add order to already logged user, that means adding record to model's internal data's QList - QPair and QMap exist.
2) If already logged user changes target "place", then model's internal data's QPair with empty QList is added to EXISTING QMap
3) However, if new user logs into system, then new object is created and added to QMap

So, in number 3 scenario I think new row must be added, or I am wrong?