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 toQUrland use its methods to parse the IP address into segments for you. -
D Damian7546 has marked this topic as solved on