use QProcess instead of subprocess