What version of Qt are you using ?
You should print the error you get if exec fails. That will give you clues as to what is happening.
On a side note, QString already provides easy to use arguments handling so you don't have to use snprintf.
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.