Thursday 15 August 2013

path - Qt: Expand ~ to home-directory -


Is there a platform-independent functionality in QT to accept routes like "~ / myfile"?

I know about, but it would be good with stage-independent cover.

Edit:

Thanks for all the responses. "~ / Myfile" was just an example. What I see is the functionality to handle file-paths, because you will be able to write on the command line. So on Linux, it should accept "~ / myfile", "~ other / / his file", "$ VAR / file" etc. It should accept "% HOMEDIR% \ myfile" etc.

You might have to tild with the result of QDir :: homePath () can change? Reference.


No comments:

Post a Comment