Hi all,

I want to use cout in Qt. I have this code:

Qt Code:
  1. #include <QtGui/QApplication>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8. QApplication a(argc, argv);
  9.  
  10. cout << "finish";
  11. return a.exec();
  12. }
To copy to clipboard, switch view to plain text mode 

but the text "finish" doesn't appear.

What's wrong?

Regards.