void MainWindow::on_actionSet_triggered() { Set * set = new Set; connect(this,&MainWindow::ToSet,set,&Set::FromMainWinidows); connect(set,&Set::ToMainWindows,this,&MainWindow::AddLibsAndIncludes); emit this->ToSet(this->other_libs,this->other_includes); set->exec(); }