I have the following code on a dialog that is launched from a separate form. It works but requires two clicks to active. New to Qt and signal/slot metaphor, thanks form any help or suggestions.

Qt Code:
  1. void SearchDialog::on_btnSearchDialog_clicked()
  2. {
  3.  
  4. connect(ui->btnSearchDialog, SIGNAL(clicked(bool)), this, SLOT(startSearchRequest()));
  5.  
  6. }
To copy to clipboard, switch view to plain text mode