What is the signature of R::toString()? Does QTextStream know how to handle it?
What is the signature of R::toString()? Does QTextStream know how to handle it?
I'm kind of new to Qt, I have no clue how to do that. In C++ I would have just overloaded the insertion operator and the problem would have been solved. so please show me how to do this one, if you don't mind.
Qt is a collection nof C++ classes.
Everything you can do with STL you can do with Qt too.
Nothing hinders you from overloading the insertion operation or the global operator.
QString has also an STL version string method:
http://qt-project.org/doc/qt-4.8/qst...ml#toStdString
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks