[Interest] Opening Folder location on a linux GUI

Thiago Macieira thiago.macieira at intel.com
Thu May 23 20:22:42 CEST 2013

On quinta-feira, 23 de maio de 2013 13.03.26, Michael Jackson wrote:
> I would like to be able to show the location of a file in the file system on
> a Linux machine ( I have code for OS X and Windows). Is there something
> built into Qt that I am just missing?
> I have found the following links helpful but not really the solution for
> Linux:
> http://stackoverflow.com/questions/3490336/how-to-reveal-in-finder-or-show-i
> n-explorer-with-qt http://lynxline.com/show-in-finder-show-in-explorer/

Have you tried QDesktopServices::openUrl with the directory where the file is 
located? It should open the file manager for the desktop, but there's no way to 
pre-select the file.
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130523/6e043c2b/attachment.sig>

More information about the Interest mailing list