Hi, I'm starting with QT, I try to connect a slot to signal QProcess::started() but can't. QObject::connect() returns false.
Any idea what am I doing wrong?

Here's part of the code:
Qt Code:
  1. class foo : public QObject
  2. {
  3. public:
  4. QProcess *process;
  5.  
  6. public slots:
  7. void process_started();
  8. }
  9.  
  10. foo::foo()
  11. {
  12. process = new QProcess();
  13. bool status = QObject::connect( process, SIGNAL( started() ), this, SLOT( process_started() ) );
  14. // status is false, meaning the slot and signal couldn't be connected
  15. }
To copy to clipboard, switch view to plain text mode 

I know the process starts successfully because I tried process->WaitForStarted() and it returns true.
But I put a breakpoint at the slot foo::process_started() and it never gets hit.
What's the problem here?
Thanks!