hi guys,

i'm working on a program in this i have ui form.
on the form i have created 9 app icons using list widget.
now i want to create a public slot in class QMainWindow
but when i wite the prototype of slot and build the project it gives me error
public slot:
void procFinished();

undefined reference to `MainWindow:rocFinished()'
error: collect2: ld returned 1 exit status

Qt Code:
  1. class MainWindow : public QMainWindow {
  2. Q_OBJECT
  3.  
  4. public:
  5.  
  6. MainWindow(QWidget *parent = 0);
  7. ~MainWindow();
  8. public slots:
  9. void procFinished();
  10.  
  11. protected:
  12. void changeEvent(QEvent *e);
  13.  
  14. void showDate();
  15. void showTime();
  16. void timerEvent( QTimerEvent *e );
  17.  
  18. private:
  19. void run(const char* cmd);
  20.  
  21. Ui::MainWindow *ui;
  22.  
  23.  
  24. QProcess *proc;
  25.  
  26. private slots:
  27.  
  28. void on_pushButton_clicked();
  29. void on_listWidget_clicked(QModelIndex index);
  30.  
  31. };
To copy to clipboard, switch view to plain text mode 

can anybody help me?


note: i'm using Qt Creator 1.3.1 based on Qt 4.6.2