Another question for Qtopia experts...
I'm trying to use a QFileDialog and hitting my head against a wall...it has to be obvious...
I keep getting compile errors:
zgscore.cpp: In method `void ZGS::Print()':
zgscore.cpp:259: no method `QFileDialog::getSaveFileName'
zgscore.cpp:259: warning: unused variable `class QString fileName'
make: *** [zgscore.o] Error 1
Here is the code:
QString fileName = QFileDialog::getSaveFileName( "/tmp/zgscore.txt",
"save file dialog",
"Choose a filename to print report" );
/* do something with fileName here */
Here is the class:
class ZGS : public ZGSBase
ZGS( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
I've included <qfiledialog.h> so that's not the problem, what could be the deal?
Thanks in advance.