Convert ipAddres to bytes
-
Hi,
I have parametr in function with ip addres :
QByteArray = "192.168.1.44"
How convert above addres to QByteArray with items:
192
168
1
44
? -
Hi,
I have parametr in function with ip addres :
QByteArray = "192.168.1.44"
How convert above addres to QByteArray with items:
192
168
1
44
?@Damian7546
QList<QByteArray> QByteArray::split(char sep) const with.
as splitter. You might alternatively convert to aQString
, pass it toQUrl
and use its methods to parse the IP address into segments for you. -