I feel QProcess may help you