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:

Qt Code:
  1. #include <QApplication>
  2. #include "mainwindow.h"
  3.  
  4. int main (int argc, char *argv[])
  5. {
  6. QApplication app( argc, argv );
  7. MainWindow main;
  8. main.show();
  9. return app.exec();
  10. }
To copy to clipboard, switch view to plain text mode