Convert QHostAddress to QUrl

时间:2016-10-20 13:21:35

标签: qt

There is a QHostAddress. How to extract a string representation of an IP address from it without dealing directly with the IPv4/IPv6 addresses?

QHostAddress::toString() for the localhost gives ::ffff:127.0.0.1 which isn't usable as http://::ffff:127.0.0.1.

0 个答案:

没有答案