Hey guys,
I need to open a folder window in the native OS's explorer.
- Explorer on Windows.
- Finder on MacOSX.
- ...
Anyone ever did that ?
Thanks.
Hey guys,
I need to open a folder window in the native OS's explorer.
- Explorer on Windows.
- Finder on MacOSX.
- ...
Anyone ever did that ?
Thanks.
Would something like this be sufficient?So already the precompiler decides what process to start.Qt Code:
#include <QtGlobal> #if defined Q_OS_WIN32 // start explorer process here. E.g. "explorer.exe C:\windows" #elif defined Q_OS_DARWIN // start finder process here #elif defined Q_OS_WHATEVER // start WHATEVER filebrowser here #endifTo copy to clipboard, switch view to plain text mode
bunjee (12th July 2009)
http://stackoverflow.com/questions/3...xplorer-on-nix
found a better solution on stack overflow.
Last edited by Okspen; 9th January 2011 at 17:33.
Edit:
sorry, I see now.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks