QHostInfo::localHostName() never give my hostname (archlinux)
qDebug() << QHostInfo::localHostName();
not show my hostname ?
From terminal, command "hostname" give me my hostname...
what's happen ? what i forget or misunderstand about QHostInfo ?
If QHostLocalHostName::localHostName() not show hostname fromlocalhost, what is the interest of this function ?
What do you get and what do you expect ?
On what OS ?
os is in the title: archlinux (and Qt-5.5.1-9)
i get exactly:
but my machine name get by command "hostname" is exactly:
when i do an application just for that, it worked. Then now, suddenly (no do nothing more), in my application, it works also.
strange... i don't know why but... ok... now it works.