当前位置: 代码迷 >> QT开发 >> 初学QT的一个有关问题
  详细解决方案

初学QT的一个有关问题

热度:23   发布时间:2016-04-25 04:32:22.0
初学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>
------解决方案--------------------
探讨

#include<qdialog.h>
改为:
#include<QDialog>

------解决方案--------------------
http://see.xidian.edu.cn/cpp/biancheng/view/66.html
探讨

引用:

#include<qdialog.h>
改为:
#include<QDialog>

why?#include<qdialog.h>是做什么的呢?

------解决方案--------------------
不是的,应该你那路径有中文吧,把中文改为英文就行啦
  相关解决方案