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);

原文地址:https://www.cnblogs.com/cute/p/2251598.html