日期:2014-05-16 浏览次数:20961 次
QStringList environment = QProcess::systemEnvironment(); QString str; foreach(str,environment) { if (str.startsWith("PATH=")) { ui.textEdit->append(str); break; } }