(一)构造函数
1.QHostAddress::QHostAddress(quint32 ip4Addr)
*Constructs a host address object with the IPv4 address ip4Addr.
2.QHostAddress::QHostAddress(quint8 *ip6Addr)
*Constructs a host address object with the IPv6 address ip6Addr.
*ip6Addr must be a 16-byte array in network byte order (big endian).
3.QHostAddress::QHostAddress(const quint8 *ip6Addr)
*Constructs a host address object with the IPv6 address ip6Addr.
*ip6Addr must be a 16-byte array in network byte order (big endian).
*This function was introduced in Qt 5.5.
4.QHostAddress::QHostAddress(const Q_IPV6ADDR &ip6Addr)
*Constructs a host address object with the IPv6 address ip6Addr.
5.QHostAddress::QHostAddress(const sockaddr *sockaddr)
*Constructs an IPv4 or IPv6