OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio


Welcome Guest ( Log In | Register )

> QFileDialog Brickwall
post Apr 6 2004, 07:07 PM
Post #1

Group: Members
Posts: 191
Joined: 16-March 04
From: Indianapolis
Member No.: 2,346

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:
void ZGS::Print()
QString fileName = QFileDialog::getSaveFileName( "/tmp/zgscore.txt",
"Textfiles (*.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 );
private slots:
void Print();

I've included <qfiledialog.h> so that's not the problem, what could be the deal?

Thanks in advance.
Go to the top of the page
+Quote Post
Start new topic
post Apr 8 2004, 07:38 PM
Post #2

Group: Members
Posts: 78
Joined: 28-January 04
From: clovis CA USA
Member No.: 1,580

Also look at the FileDialog included in the application "Just Reader" created by Dmitri Skachkov. He has the application released under GPL and it may be more suited for a PDA. As I recall it looked pretty good.
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 25th April 2018 - 06:47 PM