[Qt-interest] QHostAddress::toString()

Constantin Makshin dinosaur-rus at users.sourceforge.net
Mon Jun 29 23:26:57 CEST 2009


QHostAddress class description:
The QHostAddress class provides an IP address.

QHostAddress::toString() function description:
Returns the address as a string.
For example, if the address is the IPv4 address 127.0.0.1, the returned  
string is "127.0.0.1".

QHostAddress object stores an IP address and toString() returns its text  
representation. Nothing is missing, IMHO.

On Tue, 30 Jun 2009 01:18:44 +0400, Péntek Imre <pentek.imre at gmail.com>  
wrote:
> Hello!
>
> There's an information missing from this description:
> http://doc.qtsoftware.com/4.5/qhostaddress.html#toString
> this description doesn't mentions if this function would try to reverse-
> resolve the IP into a hostname, or it will always return an IP address  
> even if
> it would be possible to return an FQDN

-- 
Constantin "Dinosaur" Makshin



More information about the Qt-interest-old mailing list