在友善提供的qtopia-2.2.0-FriendlyARM的x86-qtopia中,编程使用qfiledialog类,在编译时会提示错误error: no method 'qfiledialog::getonefilename()'或其他提示qfiledialog未定义的错误。之前我也很不理解,为什么qtopia-2.2.0会不支持自己提供的类,但之后我想到,可能问题出在友善提供的编译x86-qtopia的build脚本上,在查找了相关资料,在网上发现了一个老外给出的解释,原文如下:
RE: compile error: no method `QFileDialog::getSaveFileName'QFileDialog is
not included in the Qt/E configuration for Qtopia. You can use FileSelector or FileManager class in Qtopia. 即QFileDialog不包括在Qte配置中,在友善的脚本中加入了-qte,所以就不能使用QFileDialog
[ 此帖被hxfirefox在2009-09-12 10:48重新编辑 ]