//获取MAC地址
//通过正则表达式来获取数据
QString sAdress;
int pos = 0;
QRegExp rxMac("([0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2})");
while ((pos = rxMac.indexIn(sInfo, pos)) != -1)
{
pos += rxMac.matchedLength();
sAdress = rxMac.cap(0);
break;
}