the slot is done like this:
connect(ui->pushButton_search, SIGNAL(clicked()), this, SLOT(select_dictionary()));