如何把LineEdit中的 IP地址存到数组里,附我写的代码
QByteArray ip=ui->setipLineEdit->text().toLatin1(); QString str= ip.toHex().data(); str = str.toUpper(); QByteArray aa; aa.resize(4); aa[0] = str.mid(0,2); aa[1] = str.mid(3,2); aa[2] = str.mid(6,2); aa[3] = str.mid(9,2);编译出错,求助!!!!!!!!!!!!!