I need a similar to .NET method for safely combining path parts without worrying for platform specifics of the path separator.
Is there such class and method in QT4?
You may use the static methods QDir::fromNativeSeparators and QDir::toNativeSeparators and then use / everywhere when manipulating the path.
QDir::fromNativeSeparators
QDir::toNativeSeparators
/