You could get the files in [...]/SEBASTIAN_HEAD_4/ and start a QProcess for each one of them when the previous one finishes.