PDA

View Full Version : QDesktopServices , open a file in finder with selection



anjul.chauhan
27th June 2011, 06:18
Hi all,


i m using QDesktopServices::openUrl(QUrl("file://"+filePath)) to open a file in finder. by this file is open in the finder but selection is not appear on the file so what can i do for the file selection in finder.

please help.

Thanks

Santosh Reddy
27th June 2011, 09:25
I assume you are doing this on MacOS, I am not much aware of MacOS, but what I can tell is you are trying to open a file / directory, with system application, which needs some start up arguments to select the file, all you can set using openUrl is path, even if you specify the arguments, they will be considered as part of file name. So I think it may not be possible