初学QT的一个问题
我自定义了一个头文件ab.h
#ifndef FINDDIALOG_H
#define FINDDIALOG_H
#include<qdialog.h>
class QCheckBox;
class QLabel;
class QLineEdit;
class QPushButton;
class FindDialog:public QDialog
{
Q_OBJECT
public:
FindDialog(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 *label;
QLineEdit *lineEdit;
QCheckBox *caseCheckBox;
QCheckBox *backwardCheckBox;
QPushButton *findButton;
QPushButton *closeButton;
};
#endif
一直提示错误:moc: E:\VS2010??\aaz\aaz\ab.h: No such file
[解决办法]
#include<qdialog.h>
改为:
#include<QDialog>
[解决办法]