[Qt-interest] QFileDialog on Windows

Duane Hebert spoo at flarn.com
Wed Jun 30 16:46:43 CEST 2010


Using Qt 4.5.1 commercial.
According to the docs, QFileDialog uses the native file dialog on Windows unless you subclass it with a class using the QObject 
Macro.

But it seems that this is only true if you use one of the static functions like getOpenFilename().  In my case, when I use even 
QFileDialog directly, on the left (sidebar) I get a selection for only MyComputer and my home directory  (documents and 
settings/myusername/blah blah)

What I need is to have the normal windows sidebar with all of the usual choices like Desktop, My Computer, Documents etc.
This looks like some sort of "favorites" list.  Is there a way to achieve this without the static functions
using setSidebarURL or something?
 




More information about the Qt-interest-old mailing list