Unsolved Trying to subscript on user defined type for writing out to qDebug()
-
Hi!..
I´m trying to debug some private fields via qDebug(), so I overload QString operator...
Im iterating a map, in this map, the first value type is a Model::musuario which has QString operator overload... but when I try to qDebug() << I get the error :"invalid operand to binary expression" looks like it is not recognizing my subscripting... where is my mistake? (image #included)
Thanks!
-
Hi,
The correct way is to implement the qDebug stream operator for your class.
-
Thanks mate...