我用的是qtopia-1.7,在一个例子里加了自己的程序,我在编译成for pc版本时没有问题,可是现在在编译成for arm版本时确出现了错误,
arm-linux-g++ -c -I/work/qtopia-free-1.7.0//include -I/work/qt-2.3.7/include -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -DNO_DEBUG -fPIC -DQTOPIA_APP_INTERFACE -I.moc/linux-arm-g++/ -o .obj/linux-arm-g++//showimg.o showimg.cpp
showimg.cpp: In method `void ImageViewer::saveImage(int)':
showimg.cpp:2998: no method `QFileDialog::getSaveFileName'
make[1]: *** [.obj/linux-arm-g++//showimg.o] Error 1
make[1]: Leaving directory `/work/qtopia-free-1.7.0/src/applications/imageviewer'
make: *** [applications/imageviewer] Error 2
我的那段程序如下:
void ImageViewer::saveImage( int item )
{
const char* fmt = saveimage->text(item);
QString savefilename = QFileDialog::getSaveFileName(QString::null, QString::null,
this, filename);
if ( !savefilename.isEmpty() )
if ( !image.save( savefilename, fmt ) )
QMessageBox::warning( this, "Save failed", "Error saving file" );
}
这个是例子自己的程序,文件也包涵了头文件<qfiledialog.h>,现在不知道该怎么办了?我是指向了for arm的那个qte库的,我的这个程序一开始也编译成qte程序过,也没问题呀,现在这到底问题出在哪呢,请高手指点一下!谢谢
[ 此贴被XChinux在2006-08-05 18:03重新编辑 ]