Possible Duplicate:
Qt equivalent of PathAppend?
Short story: does Qt 4 have an analog of Python's os.path.join
?
Long story: I need to add a relative path to the application directory, QCoreApplication::applicationDirPath()
in the Right Way (TM), so that the code doesn't depend on the file system directory separator character.
Is merely joining QStrings and using "/" as the separator a good solution?
operator/
for paths is not.QCoreApplication::applicationDirPath() / "MySubDir"
is perfectly reasonable code. Shame Qt4 doesn't have that. – Conti