bool QUSB::ReadUSB()
{
cmd=new QProcess(this);
QObject::connect(cmd,SIGNAL(readyRead()),this,SLOT(ReadOutPut()));
cmd->start("ifconfig");
return true;
}
QString QUSB::ReadOutPut()
{
QString output =cmd->readAll();
QMessageBox::information(NULL, "output",output);//为什么显示是空
return output;
}