头文件中,用class editPainter比#include "editpainter.h"好多少?
.h
#include <QtGui/QWidget>class QPushButton;class editPainter;class QLabel;class QGroupBox;class QRadioButton;class Widget : public QWidget{ Q_OBJECTpublic: Widget(QWidget *parent = 0); ~Widget();private slots: void OnClickImport(); void OnClickApply(); void OnPixmapChange(QPixmap *pixmap); void OnRadioFixClick(); void OnRadioFreeClick();private: QPushButton *m_pButtonImport; QPushButton *m_pButtonApply; editPainter *m_pPhotoEditor; QLabel *m_pLabelPixmap; QGroupBox *m_pGrpBoxScaleType; QRadioButton *m_pRadioFix; QRadioButton *m_pRadioFree; QPixmap *m_pPixmapTobesaved;};