Можно ли открыть папку в Проводнике Windows/Finder OS X, а затем выбрать/выделить один файл в этой папке и сделать это на кросс-платформенном пути? Прямо сейчас, я делаю что-то вроде
QDesktopServices::openUrl( QUrl::fromLocalFile( path ) );
где path
- полный путь к папке, которую я хочу открыть. Очевидно, это просто откроет папку, и мне придется отследить файл, который мне нужен вручную. Это небольшая проблема, когда в этой папке есть тысячи файлов.
Если я создаю путь к определенному файлу в этой папке, тогда этот файл открыт с приложением по умолчанию для этого типа mime, и это не то, что мне нужно. Вместо этого мне нужна функциональность, эквивалентная "Reveal in Finder" или "Show in Explorer".