Quote Originally Posted by sun View Post
looks like i nearly got it
But I think I have to use const_cast.
No you don't. Simply add "const" at the begginning of the second line of the snippet I posted.

My Projectclass inherits QStandardItem AND QObject.
So I can't make an QStandardItem from a Project. Or am I wrong?
You are wrong. You are wrong again to make your item inherit QObject. I really wouldn't advise it.

So I now face the descision, to implement a &operator<< with the relevant Attributes of the QStandarditem on my own or to get rid of the QObject inheritance what would make necessary massive changes to my information flux.
Get rid of QObject heritage.
Is it bad Style to Make QStandardItems to QObjects?
I'd say it's worse than Bad