How do I get the correct case of a path?
There isn't a simple way to do this, but you can try doing a QDir.entryList, and then do a case insensitive search on the results. This will provide you with the correct filename. You'll then need to get the absolutePath
for that result.
This should give you the preserved-case for the path/filename.