Does Qt have any platform-independent functionality to accept paths like \"~/myfile\"?
I know about wordexp, but it would be nice with a platform-independent wrapper
I think that the absolutePath (http://doc.qt.io/qt-5/qdir.html#absolutePath) is the way to do it.
You could probably just replace the tilde with the result of QDir::homePath()? Reference here.
QDir::homePath()