Wow Thanks, I'll have to take a look at that to get my code to be platform-independant.
In the mean time I fixed it with some windows-only code:
SHELLEXECUTEINFO ShellExecuteInfo;
ShellExecuteInfo.cbSize = sizeof(ShellExecuteInfo);
ShellExecuteInfo.fMask = SEE_MASK_NOCLOSEPROCESS | SEE_MASK_INVOKEIDLIST | SEE_MASK_FLAG_NO_UI;
ShellExecuteInfo.hwnd = widget->winId();
ShellExecuteInfo.lpVerb = prop;
ShellExecuteInfo.lpFile = WFileName;
ShellExecuteInfo.lpParameters = NULL;
ShellExecuteInfo.lpDirectory = NULL;
ShellExecuteInfo.nShow = 0;
ShellExecuteInfo.hInstApp = 0;
ShellExecuteInfo.lpIDList = 0;
return ShellExecuteEx(&ShellExecuteInfo);
SHELLEXECUTEINFO ShellExecuteInfo;
ShellExecuteInfo.cbSize = sizeof(ShellExecuteInfo);
ShellExecuteInfo.fMask = SEE_MASK_NOCLOSEPROCESS | SEE_MASK_INVOKEIDLIST | SEE_MASK_FLAG_NO_UI;
ShellExecuteInfo.hwnd = widget->winId();
ShellExecuteInfo.lpVerb = prop;
ShellExecuteInfo.lpFile = WFileName;
ShellExecuteInfo.lpParameters = NULL;
ShellExecuteInfo.lpDirectory = NULL;
ShellExecuteInfo.nShow = 0;
ShellExecuteInfo.hInstApp = 0;
ShellExecuteInfo.lpIDList = 0;
return ShellExecuteEx(&ShellExecuteInfo);
To copy to clipboard, switch view to plain text mode
But I will take a look at the QFileInfo class, thanks!
Bookmarks