程序编译时遇见一个错误,不知道怎么解决,哪位能否帮忙看看?
我在程序中使用QFileDialog类,代码为:
#include <qfiledialog.h>
void PainterRct::OpenFileselectDialog()
{
QFileDialog *fdp = new QFileDialog( this );
...
}
编译时有错误:
painterwindow.cpp:In member function'void PainterRct::OpenFileselectDialog()':
painterwindow.cpp: 203: error: invalid use of incomplete type 'struct QFileDialog'
painterwindow.h: 31: error: forward declaration of 'struct QFileDialog'
我的qt版本号为:
基础类库:Qte 2.2.0
上层:qtopia 2.3.12
弄了一个晚上,还是不知道是哪错了,哪位能帮忙看下?万分感谢!