Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, February 2007
QFileDialog - How to filter only execuatable files in Linux


Message 1 in thread

Is there anyway so that only the executable files or files with certain
modes can be filtered out?
-- 
 [ signature omitted ] 

Message 2 in thread

On Saturday 17 February 2007 08:16, Sunil Thaha wrote:
> Is there anyway so that only the executable files or files with certain
> modes can be filtered out?

http://doc.trolltech.com/4.2/qfiledialog.html#setFilters

--
 [ signature omitted ] 

Message 3 in thread

Hello amit,


On Sat, 17 Feb 2007 12:01:44 +0000 amit <pom2@xxxxxxxxxxxxxxxx> wrote:

> On Saturday 17 February 2007 08:16, Sunil Thaha wrote:
> > Is there anyway so that only the executable files or files with certain
> > modes can be filtered out?
> 
> http://doc.trolltech.com/4.2/qfiledialog.html#setFilters

As "executable files" in Unix means files that have the "executable" flag,
and since QFileDialog doesn't allow filtering according to file permissions,
it's not possible to do what Sunil wants.


Regards,

-- 
 [ signature omitted ] 

Attachment: signature.asc
Description: PGP signature


Message 4 in thread

On Saturday 17 February 2007 12:28, wwp wrote:

Ah - I see.
Well how about a custom dialog which uses QFile::Permissions() and a suitable 
list?

A 

> Hello amit,
>
> On Sat, 17 Feb 2007 12:01:44 +0000 amit <pom2@xxxxxxxxxxxxxxxx> wrote:
> > On Saturday 17 February 2007 08:16, Sunil Thaha wrote:
> > > Is there anyway so that only the executable files or files with certain
> > > modes can be filtered out?
> >
> > http://doc.trolltech.com/4.2/qfiledialog.html#setFilters
>
> As "executable files" in Unix means files that have the "executable" flag,
> and since QFileDialog doesn't allow filtering according to file
> permissions, it's not possible to do what Sunil wants.
>
>
> Regards,

--
 [ signature omitted ] 

Message 5 in thread

On Saturday 17 February 2007 09:16, Sunil Thaha wrote:
> Is there anyway so that only the executable files or files with certain
> modes can be filtered out?

In 4.3 you will be able to set a sort filter proxy model on the file dialog 
which will allow you to customize the filtering.

-Benjamin Meyer

--
 [ signature omitted ]