• 4561阅读
  • 3回复

怎样获取本机的ip??????????? [复制链接]

上一主题 下一主题
离线zhanglele
 
只看楼主 正序阅读 楼主  发表于: 2008-12-01
— 本帖被 XChinux 执行加亮操作(2009-01-06) —
在linux下 qt 3.3哈 我想获取本机的ip  不是绑定本机ip哈
离线lazybone
只看该作者 3楼 发表于: 2008-12-01
那有没有类似于 QSystemInfo 之类的系统信息类 找找看
离线zhanglele
只看该作者 2楼 发表于: 2008-12-01
没有哦
离线lazybone
只看该作者 1楼 发表于: 2008-12-01
不知道Q3 有没
QNetworkInterface
--------------------------------
addressEntries()
          Returns the list of IP addresses that this interface possesses along with their associated netmasks and broadcast addresses.
allAddresses()
          This convenience function returns all IP addresses found on the host machine.
快速回复
限100 字节
 
上一个 下一个