Print with iostream to console
Hi everyone,
I was wondering if it is possible to print output to the command line while running a gui, I have tried using iostream... cout << .. but it doesn't work. Is there something specific I have to do in the main that starts the application.. this is what it looks like:
Code:
#include <QApplication>
#include "mainwindow.h"
int main (int argc, char *argv[])
{
MainWindow main;
main.show();
return app.exec();
}
Re: Print with iostream to console
You will need to add
CONFIG += console to your .pro file