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

Onur Tugcu onur.tugcu at gmail.com
Fri Dec 31 13:02:20 CET 2010


Hi Hiral,

I don't have an example ready, but you can take a look at QDirModel and
QTreeView classes.

On Fri, Dec 31, 2010 at 1:02 PM, hi <hiralsmaillist at gmail.com> wrote:

> Hi Onur,
>
> I also think showing directory structure in side-bar would allow user
> to select mutiple files irrespective of their location.
>
> Do you have any example to replace or append dir tree view inside left
> side-bar ?
>
> Thank you.
> -Hiral
>
>
> On 12/31/10, Onur Tugcu <onur.tugcu at gmail.com> wrote:
> > I've seen a *tree view with checkboxes* used for such scenarios.
> >
> > On Fri, Dec 31, 2010 at 11:04 AM, Scott Aron Bloom <
> > Scott.Bloom at onshorecs.com> wrote:
> >
> >> Most applications that allow for multiple files to be selected from
> >> multiple locations, allow the user to activate the dialog via pushbutton
> >> (or
> >> whatever method they have) multiple times...  Then they can re-order the
> >> files as necessary...
> >>
> >>
> >> -----Original Message-----
> >> From: qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com[mailto:
> >> qt-interest-bounces+scott.bloom <qt-interest-bounces%2Bscott.bloom>=
> >> onshorecs.com at qt.nokia.com] On Behalf Of hi
> >> Sent: Thursday, December 30, 2010 11:45 PM
> >> To: Jeffery MacEachern
> >> Cc: qt-interest at qt.nokia.com
> >> 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?
> >>
> >> 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
> >> _______________________________________________
> >> Qt-interest mailing list
> >> Qt-interest at qt.nokia.com
> >> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
> >>
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101231/d44f1dea/attachment.html 


More information about the Qt-interest-old mailing list