[Qt-interest] Simple Hello World won't work

Mike Adolf mlnx at mho.com
Sun Mar 8 02:56:24 CET 2009


Why won't this work in Windows Vista.  After a successful make, the 
following doesn't produce any output when run from a command prompt.
-------------------------------------------------------
#include <QApplication>
#include <QTextStream>

int main(int argc, char **argv){
  QTextStream cout(stdout, QIODevice::WriteOnly);
  cout << "Hello World\n";
  return 0;
}
--------------------------------------------------------

A similar c++, without the Qt stuff works fine.

Mike



More information about the Qt-interest-old mailing list