In the following code the SLOT(Ok()) is not triggered when the user presses the pushbutton Ok. I have either to put "accept" or "close". As it is here the window is not closed or only with cancel

I don't understand this behaviour, what have I done wrong ?

Qt Code:
  1. pbOk = new QPushButton( "Ok", this);
  2.  
  3. connect( pbOk, SIGNAL( clicked() ), this, SLOT( Ok() ) ); // <--- does not work
  4. connect( pbCancel, SIGNAL( clicked() ), this, SLOT( close() ) );
  5.  
  6. }
  7.  
  8. //*************************************************************
  9. void Destinataires::Ok()
  10. {
  11. accept(); // does not work either with emit accept, emit close
  12. close();
  13. }
To copy to clipboard, switch view to plain text mode 

Thanks for helping me out !