error: C2228: left of '.nospace' must have class/struct/union
error: C2228: left of '.nospace' must have class/struct/union
why do you think this should work in the first place?
==========================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.
just write
qDebug()<<"Test";
don't forget to include: #include <QDebug>
You should know that: std::endl is just a template function
declaration:
Qt Code:
template <class charT, class traits> basic_ostream<charT,traits>& endl ( basic_ostream<charT,traits>& os );To copy to clipboard, switch view to plain text mode
and following code is equal:
Qt Code:
std::cout<<"hello"<<std::endl; std::endl(std::cout<<"hello");To copy to clipboard, switch view to plain text mode
std::endl is not supported by qDebug() (QDebug). This is not a STL stream!
Every qDebug() << somthig << something; creates log in separate line.
Bookmarks