I gave it a try!
My out Operator looks basically:
for(int a=0;a<rowCount;a++)
{
//out << *myModel.item(a,0);
out << *myModel.getItem(a);
}
for(int a=0;a<rowCount;a++)
{
//out << *myModel.item(a,0);
out << *myModel.getItem(a);
}
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
Bookmarks