Qt-interest Archive, September 2002
QFileDialog for Sharp Zaurus?
Message 1 in thread
Am developing an application for the Sharp Zaurus device. Want to get the input of a file name on the device...
Am using the qtopia-free-1.5.0-1.i386.rpm SDK.
Am trying to us the QFileDialog public static member getOpenFileName.
#include<qfiledialog.h>
//My function contains the foll code---
QString filter ("*.txt");
QString caption ("Choose File...");
QString start(QDir::currentDirPath());
QString srcFileName = QFileDialog::getOpenFileName(start, filter, this, "", caption);
.
.
.
When I compile this for x86 or ARM it throws and error like "No method QFileDialog::getOpenFileName"
Please could anyone tell me if the File Dialog functionality can be implemented on a sharp ZAurus device? As I do not have a device I cannot
verify this. What is the problem with the QFileDialog class...it does not even allow me to create an object of that class in my source code...am using Qt 2.3.2
Thanks in Advance,
Priti
Message 2 in thread
You have to use FileSelector instead. I think there
were some patches to ad QFileDialog but out of the
box, it's FileSelector.
bc
--- Priti Adam <priti@comcreation.com> wrote:
> Am developing an application for the Sharp Zaurus
> device. Want to get the input of a file name on the
> device...
>
> Am using the qtopia-free-1.5.0-1.i386.rpm SDK.
>
> Am trying to us the QFileDialog public static member
> getOpenFileName.
>
> #include<qfiledialog.h>
> //My function contains the foll code---
>
> QString filter ("*.txt");
> QString caption ("Choose File...");
> QString start(QDir::currentDirPath());
>
> QString srcFileName =
> QFileDialog::getOpenFileName(start, filter, this,
> "", caption);
> .
> .
> .
>
> When I compile this for x86 or ARM it throws and
> error like "No method QFileDialog::getOpenFileName"
>
> Please could anyone tell me if the File Dialog
> functionality can be implemented on a sharp ZAurus
> device? As I do not have a device I cannot
> verify this. What is the problem with the
> QFileDialog class...it does not even allow me to
> create an object of that class in my source
> code...am using Qt 2.3.2
>
> Thanks in Advance,
> Priti
>
> --
> List archive and information:
http://lists.trolltech.com/qt-interest/
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
Message 3 in thread
Hi ,
I tried using FileSelector class. Could you tell me what exacltly can be achieved using this class. Does it popup a widget which lists the files in a particular directory and from which user can select the file and that file name can be obtained? THis is what I want to do actually.
my code consists of lines as below:
FileSelector fs( "/", this, "", FALSE, TRUE);
/*
const DocLnk* dl = fs.selected();
QString selected = dl->name();
QMessageBox::warning(0, "Project1", selected, 0, 0, 1);
*/
When i run this (on x86 ..viewing on qvfb) it says---
"Categories::labels didn't find app Document View. "
If I un-comment the remaining 3 lines ...it gives a
"Categories::labels didn't find app Document View. "
Segmentation fault(core dumped)
What is wrong?
Thanks !
Priti
---------- Original Message ----------------------------------
From: brown cow <djlarue@yahoo.com>
Reply-To: djlarue@yahoo.com
Date: Fri, 6 Sep 2002 16:44:55 -0700 (PDT)
>You have to use FileSelector instead. I think there
>were some patches to ad QFileDialog but out of the
>box, it's FileSelector.
>
>bc
>--- Priti Adam <priti@comcreation.com> wrote:
>> Am developing an application for the Sharp Zaurus
>> device. Want to get the input of a file name on the
>> device...
>>
>> Am using the qtopia-free-1.5.0-1.i386.rpm SDK.
>>
Message 4 in thread
Run "qpe" so your framebuffer has a Documents tab.
This should get you your file list. Ofcourse you'll
have to put some documents in the system so it can
find them.
What the FileSelector does is show you a list of all
the documents/files the system finds and displays in
it's Documents folder. No need for the user to travers
directories, QPE already handles this.
bc
--- Priti Adam <priti@comcreation.com> wrote:
> Hi ,
>
> I tried using FileSelector class. Could you tell me
> what exacltly can be achieved using this class. Does
> it popup a widget which lists the files in a
> particular directory and from which user can select
> the file and that file name can be obtained? THis is
> what I want to do actually.
>
> my code consists of lines as below:
>
> FileSelector fs( "/", this, "", FALSE, TRUE);
>
> /*
> const DocLnk* dl = fs.selected();
> QString selected = dl->name();
> QMessageBox::warning(0, "Project1", selected, 0,
> 0, 1);
> */
>
> When i run this (on x86 ..viewing on qvfb) it
> says---
> "Categories::labels didn't find app Document View. "
>
> If I un-comment the remaining 3 lines ...it gives a
> "Categories::labels didn't find app Document View. "
> Segmentation fault(core dumped)
>
> What is wrong?
>
> Thanks !
>
> Priti
>
> ---------- Original Message
> ----------------------------------
> From: brown cow <djlarue@yahoo.com>
> Reply-To: djlarue@yahoo.com
> Date: Fri, 6 Sep 2002 16:44:55 -0700 (PDT)
>
> >You have to use FileSelector instead. I think
> there
> >were some patches to ad QFileDialog but out of the
> >box, it's FileSelector.
> >
> >bc
> >--- Priti Adam <priti@comcreation.com> wrote:
> >> Am developing an application for the Sharp Zaurus
> >> device. Want to get the input of a file name on
> the
> >> device...
> >>
> >> Am using the qtopia-free-1.5.0-1.i386.rpm SDK.
> >>
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com