Как в QT определить, в какой ОС выполняется приложение. Когда отрабатывает метод объекта QFileDialog, я не знаю, необходимо ли разворачивать и дублировать слэши для винды или оставить как есть для Linux.
Читать доки, там написано: Qt/X11 When compiling for this platform, the macro Q_WS_X11 is defined. Qt/Windows When compiling for this platform, the macro Q_WS_WIN is defined. Qt/Mac OS X When compiling for this platform, the macro Q_WS_MACX is defined. Qt/Embedded When compiling for this platform, the macro Q_WS_QWS is defined