Hi Gerolf,
Thank for your reply.
Yes, MyClass != MyObject (I'm sorry, it was a typographic mistake).
I have found the error (but I can't understand), your definition don't work for me:
When we see this definition anything is wrong, it's a simple operator overload, but don't work when use & in QDebug parameter (dbg reference), I have to eliminate this from you code and it work.
@Debug &operator <<(QDebug dbg, const MyObject &myObj)@
But I can't understand why can't pass QDebug like reference.
Thank you Gerolf.
BR,