I have follwing code snippet to run. In which I want to see result of qDebug() but I dont want see result of qInfo(). I want to configure it on basis, sowetimes I need those qInfo() output and sometimes not.
qInfo()<<"Info print";
qDebug()<<"Debug print";
In above code, I want only 'Debug print' should print. but can't comment qInfo() line.
As it described on the Qt debug documentation, you have to compile with
QT_NO_INFO_OUTPUTto disable it.You can also use define for other macro: