1 converting QBitArray to QByteArray 8 QBitArray to QByteArray 1 Howto serialize and deserialize between unknown typedef struct and QByteArray 1 C++/QT - Converting data to different format via QByteArray differs from reading into struct 1 Custom type to QByteArray 0 Cast a struct to...
QByteArray ba= ui->lineEdit->text().toLatin1(); h=gethostbyname(ba.data());if(h ==NULL) { qDebug()<<"get hostbyname error!"; exit(1); }structin_addr *in=(in_addr *)h->h_addr;char*ch = inet_ntoa(*in); QString str=QString(QLatin1String(ch)); qDebug()<<"IP Address...