jthacker
20th March 2010, 08:54
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::procFinished()'
error: collect2: ld returned 1 exit status
class MainWindow : public QMainWindow {
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
public slots:
void procFinished();
protected:
void changeEvent(QEvent *e);
void showDate();
void showTime();
void timerEvent( QTimerEvent *e );
private:
void run(const char* cmd);
Ui::MainWindow *ui;
QProcess *proc;
private slots:
void on_pushButton_clicked();
void on_listWidget_clicked(QModelIndex index);
};
can anybody help me?
note: i'm using Qt Creator 1.3.1 based on Qt 4.6.2
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::procFinished()'
error: collect2: ld returned 1 exit status
class MainWindow : public QMainWindow {
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
public slots:
void procFinished();
protected:
void changeEvent(QEvent *e);
void showDate();
void showTime();
void timerEvent( QTimerEvent *e );
private:
void run(const char* cmd);
Ui::MainWindow *ui;
QProcess *proc;
private slots:
void on_pushButton_clicked();
void on_listWidget_clicked(QModelIndex index);
};
can anybody help me?
note: i'm using Qt Creator 1.3.1 based on Qt 4.6.2