[Qt-interest] Selecting multiple files on different locations using QFileDialog

Mihail Naydenov mlists at ymail.com
Fri Dec 31 10:03:49 CET 2010


----- Original Message ----

> From: hi <hiralsmaillist at gmail.com>
> To: Jeffery MacEachern <j.maceachern at gmail.com>
> Cc: qt-interest at qt.nokia.com
> Sent: Fri, December 31, 2010 9:44:49 AM
> Subject: Re: [Qt-interest] Selecting multiple files on different locations 
>using QFileDialog
> 
> Hi Jeffery,
> 
> Thanks for the reply.
> 
> I observed the same behavior  (i.e. user can not select multiple files
> from different location) with Visual  Studio - 2008 (File -> Open ->
> File...).
> 
> So it seems -- it is  by-design.
> BTW:any idea on how application can handle this case?

I guess by either prompting for "Select additional files" after the first 
session with the  QFileDialog ends.
Or writing a custom file dialog which is not that hard given the Qt primitives.

MihailNaydenov

> 
> Thank  you.
> -Hiral
> 
> On 12/31/10, Jeffery MacEachern <j.maceachern at gmail.com>  wrote:
> > On Thu, Dec 30, 2010 at 21:54, hi <hiralsmaillist at gmail.com>  wrote:
> >> Hi,
> >>
> >> I am using  QFileDialog::getOpenFileNames() to get multiple input files
> >> in one  of my appplication.
> >> I observed that "we can not select multiple  files if they reside in
> >> different location", but  user can select  multiple input file if they
> >> reside in current  directory.
> >>
> >> Is it bug in QFileDialog or am I missing any  thing?
> >> Any idea?
> >
> > There isn't really any sensible way  to select files in different
> > directories using the QFileDialog UI, so  it's not a bug - just a
> > limitation of the design.  ...That is,  unless I'm missing something
> > from your question?
> >
> >  Cheers,
> >  - Jeffery MacEachern
> >
> >> Thank  you.
> >> -Hiral
> >>  _______________________________________________
> >> Qt-interest mailing  list
> >> Qt-interest at qt.nokia.com
> >>  http://lists.qt.nokia.com/mailman/listinfo/qt-interest
> >>
> >
> _______________________________________________
> Qt-interest  mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
> 


      



More information about the Qt-interest-old mailing list