"system()" function accepts const char * parameter, and there is no implicit conversion from QString to const char *.
Convert the string to QByteArray and then extract the raw data from it.
Btw. you don't have to use external process to do a directory listing, have a look at QDir class.