[Qt Bug reported] App crashes on QDesktopServices::openUrl(QUrl(“file:///C://folder)); if folder is empty
For some reasons my application crashes when I execute the following line.
EDIT: It only crashes when the target folder is empty.
Since it crashes os OSX every time (even if the folder is non-empty) I filed a bug in JIRA:
The snippet from the bugreport works for me. Although, on Windows your path is wrong. These are the right calls:
You will hardly ever need native separators in Qt world.
In either case, I do not have crashes neither on windows nor on the mac.