View Single Post
Posts: 180 | Thanked: 76 times | Joined on May 2010
#72
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.

Last edited by Diph; 2010-07-18 at 18:54.