Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Can QFileDialog act like the OS File explore Finder for example?
mastronardif last edited by
Can QFileDialog open a file like Finder? I want to be able double click and have the OS open the file. I generate Excel files and then I want the user to open the file(s) in Excel.
I know you can do this: QDesktopServices::openUrl(QUrl("file:///" +fn) );
but i prefer not to.
i am currently using
QDesktopServices::openUrl(QUrl("file:///" + WhereToPutReport))
to get the behavior I want.
By default QFileDialog uses the OS specific file dialog so you already have the original behavior. But a file dialog is not a finder/explorer window, it's not its purpose