Take any book for c++, there will be a lot of examples how to overload a operator. For debug and struct useThe text stream works equal. And the place for the deklaration/definition you will find...Qt Code:
friend QDebug operator<<(QDebug out, const YourStruct &s) { //... }To copy to clipboard, switch view to plain text mode
Bookmarks