I noticed something with qDebug() QTextStrean and generally stdin, stdout wanna ask, how it works actually, see this:
THIS WORKS!
method showmenu() using QTextStream
showMenu(){
QTextStream m_out(stdout);
QTextStream m_in(stdin);
m_out() << "Hey";
}
THIS DOESN'T WORK!
.h
//declaration
public:
QTextStream m_out;
QTextStream m_in;
.cpp
//method showMenu()
showMenu(){
m_out(stdout);
m_in(stdin);
m_out() << "Hey";
}
I noticed, it has problem with overloading, because also qDebug() uses stdout... am I correct?
It throws this error:
1>D:..\App_console.cpp(20,15): error : no match for call to '(QTextStream) (_IO_FILE*&)'
I have included cstdio
What could it be?