title: Is it possible to add a custom class to QStandardItem?
body: <p>I wanted to know if its possible to add a custom class to QStandardItem . I currently do something like this</p>
  
  <pre><code>QStandardItem* item_text=  new QStandardItem();
  item_text-&gt;setText(msg.c_str());
  </code></pre>
  
  <p>Now suppose I had a class <code>foo</code> that did not inherit from QVariant is it possible to store it in QStandardItem ? If so how would I store it and then retrieve it ??</p>