Get file position when attaching an open file descriptor to QFile