title: Subclassing QStandardItemModel to avoid QAbstractItemModel
body: <p>I'm implementing a <a href="http://qt-project.org/doc/qt-4.8/model-view-programming.html" rel="nofollow">Model/View</a> for a tree like structure, and I've decided to try the <a href="http://qt-project.org/doc/qt-4.8/qstandarditemmodel.html" rel="nofollow">QStandardItemModel</a> on which I want to wrap on it a specific class, (which I call here "appSpecificClass"). </p>
  
  <p>Basically, I want part of that class (like names, or some data), to be shown in the model, and when I change the model (in edit role, or drag and drop), I want that to have consequences on the appSpecificClass (which is, when I change a name that is showing on the model, the name on the object associated with the model's item of the appSpecificClass also changes).</p>
  
  <p>So, I started from subclassing the QStandardItem by a appSpecificItem, which only has a pointer to the appSpecificClass. When I construct the appSpecificItem, the text and icons are called from appSpecificClass and everything works fine.</p>
  
  <p>However, when change data from appSpecificItem, naturally it does not change the appSpecificClass, because so far I didn't found any way of interacting with the appSpecificItem's pointer via overloading a virtual function (or else)</p>
  
  <p>Does anyone knows how to do this/if this is possible? What can I do such that if for instance the <a href="http://qt-project.org/doc/qt-4.8/qstandarditemmodel.html#itemChanged" rel="nofollow">signal</a> </p>
  
  <pre><code>QStandardItemModel::itemChanged ( QStandardItem * item )
  </code></pre>
  
  <p>is emitted, I can change a the appSpecificItem's pointer.</p>
  
  <p>If not, is there any good tutorial about implementing a Model from scratch? I've tried myself some, but it is not an easy task. Ideally I would like a QStandardItemModel like model, but a little more abstraction on it (such that I can put my appSpecificClass on it).</p>