Hi all,

newbie question after two years of honored Qt development
One sunny day I decided to kill myself trying to make up console applications...the beginning of the end.
I searched around for several hours, no examples, no a-b-c docs... I can't make a stupid hello world console application.

Qt Code:
  1. // main.cpp
  2. #include <QtCore>
  3. #include "backdoor.h"
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7. QCoreApplication a(argc,argv);
  8. Backdoor bd;
  9.  
  10. bd.spit("Hello world!");
  11.  
  12. return a.exec();
  13. }
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. // backdoor.h
  2. #include <QtCore>
  3.  
  4. class Backdoor : public QObject
  5. {
  6. private:
  7.  
  8. public:
  9. Backdoor();
  10. void spit(QString str);
  11. };
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. // backdoor.cpp
  2. #include "backdoor.h"
  3.  
  4. Backdoor::Backdoor()
  5. :out(stdout)
  6. {
  7. }
  8.  
  9. void Backdoor::spit(QString str)
  10. {
  11. out << str;
  12. }
To copy to clipboard, switch view to plain text mode 
this code looks trivial, a stupid output, but I've not been able to make it run properly (no output!)...
1_ what's wrong with QTextStream? What did I forget?
2_ what is the basis concept to make console application? (an example of usage with an object and, possibly, an event to initiate me would be very very very apprecciated)

120 Experience Points to who'll answer good!
Thanks in advance