qprocess wildcard

http://developer.qt.nokia.com/forums/viewthread/9042

 

QProcess is the right class :) you just need to invoke a shell to perform that wildcard expansion.
Something like

 

QStringList options;

options << "-c" << "grep -rn hello /tmp/*";

QProcess process;

process.start("/bin/sh", options);

posted on 2011-11-16 18:29  katago  阅读(376)  评论(0编辑  收藏  举报