Well...Actually I reinstall another version (4.3.4 ...) ..So it work for simple application ( project with only one main.cpp).
I tried to create a project with 3 files ( file.h ,file.cpp and main.cpp)
file.h:
#ifndef MYDIALOG_H
#define MYDIALOG_H
#include <QDialog>
{
Q_OBJECT
public:
signals:
void findNext
(const QString *str,Qt
::CaseSensitivity cs
);
void findPrevious
(const QString *str,Qt
::CaseSensitivity cs
);
private slots:
void findClicked();
void enableFindButton
(const QString &text
);
private:
};
#endif
#ifndef MYDIALOG_H
#define MYDIALOG_H
#include <QDialog>
class QLabel;
class QCheckBox;
class QTextEdit;
class QLineEdit;
class QPushButton;
class myDialog: public QDialog
{
Q_OBJECT
public:
myDialog(QWidget *parent=0);
signals:
void findNext(const QString *str,Qt::CaseSensitivity cs);
void findPrevious(const QString *str,Qt::CaseSensitivity cs);
private slots:
void findClicked();
void enableFindButton(const QString &text);
private:
QLabel *lable1;
QLineEdit *lineEdit;
QCheckBox *case1;
QCheckBox *case2;
QPushButton *find;
QPushButton *close;
};
#endif
To copy to clipboard, switch view to plain text mode
file.cpp ( definitions of member function)
main ( a simple instance of the class dial)
..the errors I get are linker error >>>undefined reference to myDialog::staticMetData..?
..
..
I read about Q_Object mecanism ..but I dont really know wht to do ( how to create a moc file??!!)
plz help
Bookmarks