[Qgis-developer] Mac Use of QFileDialog

William Kyngesburye woklist at kyngchaos.com
Mon May 19 09:51:23 EDT 2008

On May 18, 2008, at 11:37 PM, Tom Elwertowski wrote:

> Attached is a patch which uses setSidebarUrls to access multiple Mac  
> drives and make QFileDialog look more like a Mac dialog. It has two  
> deficiencies.
> 1. The volumes are listed alphabetically rather by mount order.
If drivers are listed in mount order in OSX, I never really noticed,  
but given a choice I'd prefer aplha.

> 2. If you navigate into the root of the boot volume, for example / 
> Applications or /Network, QFileDialog discovers that /Volumes should  
> be invisible and no longer lets you browse /Volumes. The workaround  
> is to cancel and open the dialog again. If the user goes directly to  
> an external volume, this won't be noticed.
> This demo patch only fixes file dialogs in qgisapp.cpp. These are  
> probably the most noticeable. To fix them all, QFileDialog needs to  
> subclassed. I'll do this if other Mac users think this is better  
> than the current QFileDialog behavior.
Anything is better than no access at all to Volumes.


William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>

"Mon Dieu! but they are all alike.  Cheating, murdering, lying,  
fighting, and all for things that the beasts of the jungle would not  
deign to possess - money to purchase the effeminate pleasures of  
weaklings.  And yet withal bound down by silly customs that make them  
slaves to their unhappy lot while firm in the belief that they be the  
lords of creation enjoying the only real pleasures of existence....

- the wisdom of Tarzan

More information about the Qgis-developer mailing list