I gave it a try!

My out Operator looks basically:

Qt Code:
  1. for(int a=0;a<rowCount;a++)
  2. {
  3. //out << *myModel.item(a,0);
  4. out << *myModel.getItem(a);
  5. }
To copy to clipboard, switch view to plain text mode 

With the first out uncommented the File gets bigger. I think this executes the QStandardItems operator, but the specific myItem Attributs get lost

When I cast the QStandardItem to myItem in myModel.getItem it executes my myItem in operator, but all QStandardItem specific things get lost.

How to implement the myItem &operator<< and the myModel &operator<<, so that i save my Attributs and also save the QstandardItem (model) attributes?

sun