[PyKDE] newbie: QFileDialog

Boudewijn Rempt boud at valdyas.org
Wed Aug 28 07:20:01 BST 2002


On Tuesday 27 August 2002 22:47, Eli Carter wrote:
> Ok, time for a dumb question.  I've made a fleeting google attempt, and
> a cursory stroll through doc.trolltech.com/2.3 didn't turn up an answer.
>
> I want to use QFileDialog to let a user pick files on a remote system,
> such as over an ftp connection.  I'm not really sure where to start.  I
> expect to subclass it, but I don't know what internals would need to be
> overridden, where to find that out, or if that is possible in pyqt.
>
> A pointer to a discussion or documentation would be preferred, as this
> is something I expect I'll want to do more of in the future.  (I want to
> learn the how's and why's so I can apply this in more than just this case.)
>

The easiest solution might be to use PyKDE's filedialog which should
provide most of this kind of behaviour. I think it would be hard to achieve 
what you want by just subclassing the existing dialog, since most of the 
file-system browsing code is private to the class. You might end up having to 
write your own filedialog that looks like the standard one.
-- 
Boudewijn Rempt | http://www.valdyas.org




More information about the PyQt mailing list