Perhaps http://doc.trolltech.com/4.7-snapsho...system-command does work?