Quote Originally Posted by jaafari View Post
and how to use QAbstractItemModel::setData() ?
Easy:
  1. you stop being lazy;
  2. you go read the documentation as you were already advised to;
  3. you try to solve your problem;
  4. you come back and explain the approaches you tried, and ask specific questions.

Does that sound reasonable to you, or would you rather have other people do for free the work you are paid for?