For invoking a local command I would probably use QString::toLocal8Bit() instead of toStdString()

However, in this case I would recommend to use QProcess instead of system.

Cheers,
Kevin