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.
Printable View
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.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 #endif
http://stackoverflow.com/questions/3...xplorer-on-nix
found a better solution on stack overflow.
Edit:
sorry, I see now.