[PyQt] QFileDialog filtering by permissions

katull katull2001 at gmx.net
Tue Feb 2 19:17:43 GMT 2010

Hello everyone,

I've tried to get QFileDialog to show only files and directories with a
certain set of permissions. So far I tried using its setFilter method
(http://pastebin.com/d650cfd96) and subclassing QSortFilterProxyModel,
overwriting filterAcceptsRow and filterAcceptsColumn. In fact, it doesn't
matter what I pass in setFilter (only dirs, only files ...) it just gets
ignored, as well as the return values of filterAccept... 

I'm using PyQt 4.5 and Qt 4.5.

How am I able to filter out all files / directories in QFileDialog for which
I don't have execution permission?


P.s.: I hope I didn't doublespam this message, I haven't been subscribed and
was unsure if the message was posted or not
View this message in context: http://old.nabble.com/QFileDialog-filtering-by-permissions-tp27424216p27424216.html
Sent from the PyQt mailing list archive at Nabble.com.

More information about the PyQt mailing list