It should be connect(..., this, SLOT(processFinished(int) or you can define the method void processFinished() if you don't need the exit code. In header file (*.h) you declare methods and in source file (*.cpp) you write the implementation. Method declarations and implementations have to be in same form, like Header: Code: class MainWindow { ... private: void processFinished(int code); Cpp: Code: void MainWindow::processFinished(int code) { } Actually you can make the connect without less attributes: Code: connect(progress, SIGNAL(finished(int, QString), this, SLOT(progressFinisshed(int)); and it should work.
class MainWindow { ... private: void processFinished(int code);
void MainWindow::processFinished(int code) { }
connect(progress, SIGNAL(finished(int, QString), this, SLOT(progressFinisshed(int));
QProcess *process = new QProcess(this); process->start("/sbin/launchblack", arguments);
QProcess::execute("/sbin/launchblack", arguments);