No you don't. Simply add "const" at the begginning of the second line of the snippet I posted.
You are wrong. You are wrong again to make your item inherit QObject. I really wouldn't advise it.My Projectclass inherits QStandardItem AND QObject.
So I can't make an QStandardItem from a Project. Or am I wrong?
Get rid of QObject heritage.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.
I'd say it's worse than BadIs it bad Style to Make QStandardItems to QObjects?![]()
Bookmarks