why am I getting this "qDebug (QString) error ?
-
See the title
-
@AnneRanch Because the right way to do is
qDebug() << line;
-
Hey, maybe you mean qDebug() << line ?
-
-
As always - if you want to use a function you must include the header which defines it.
-
Al always you cannot post without putting a person down
Would somebody else kindly EXPLAIN why the qDebug(" " ) ; worked but
qFebug() << did not.
ThanksqDebug(" START int Form:: RunProcess_Asynch(QString Command, QStringList args )");
qDebug()<<Command;
qDebug()<<args; -
Because qDebug() is a class which is defined in <QDebug> and qDebug(const char*) is a function defined in <QtGlobal>. So when you do not include the correct header, the compiler will not find the function/class - what's wrong with this statement here? Even the compiler tells you that the type is unknown to him but you kindly ignored the warning.