QChar QDir::separator() Returns the native directory separator: "/" under Unix and "\" under Windows. You do not need to use this function to build file paths. If you always use "/", Qt will translate your paths to conform to the underlying operating system. If you want to display paths to the user using their operating system's separator use toNativeSeparators(). See also listSeparator().