kylin-connectivity/projection/util/apputil.cpp

10 lines
251 B
C++

#include "apputil.h"
QString AppUtil::convertToIPv4Addr(const QHostAddress &addr)
{
quint32 addrOrigin = addr.toIPv4Address();
QHostAddress addrHost = QHostAddress(addrOrigin);
QString addrStr = addrHost.toString();
return addrStr;
}