Hi!

I'm working with a GLC Viewer application (GLC Viewer is based on Qt4, you can read more about it here: http://glc-lib.sourceforge.net/). When I try to do couts, nothing is showing in the terminal. I wrote a small test application which I compiled using qmake, but it didn't work. I modified the inital pro file with an extra line CONFIG += console and then recompiled, but it still didn't work. This is the code:

test.cpp
Qt Code:
  1. #include <iostream>
  2. #include <stdlib.h>
  3. #include <sstream>
  4.  
  5. int main(int, const char**) {
  6. std::cout << "Hi!" << std::endl;
  7. return 0;
  8. }
To copy to clipboard, switch view to plain text mode 

test.pro (edited, with the config line added)
Qt Code:
  1. TEMPLATE =
  2. TARGET +=
  3. DEPENDPATH += .
  4. INCLUDEPATH += .
  5. CONFIG += console
  6.  
  7. # Input
  8. SOURCES += test.cpp
To copy to clipboard, switch view to plain text mode 

What's going on? Cout works on my computer in common C++ applications, so why doesn't it work in Qt applications?

I'll be very grateful for any help.