24void MyWidget::lookedUp(
const QHostInfo &host)
The QHostAddress class provides an IP address.
The QHostInfo class provides static functions for host name lookups.
static int lookupHost(const QString &name, QObject *receiver, const char *member)
Looks up the IP address(es) associated with host name name, and returns an ID for the lookup.
HostInfoError error() const
Returns the type of error that occurred if the host name lookup failed; otherwise returns NoError.
QString errorString() const
If the lookup failed, this function returns a human readable description of the error; otherwise "Unk...
static QHostInfo fromName(const QString &name)
Looks up the IP address(es) for the given host name.
QList< QHostAddress > addresses() const
Returns the list of IP addresses associated with hostName().
bool isEmpty() const noexcept
GLuint GLuint64EXT address
char * toString(const MyType &t)
[31]