获取本机ip地址

QString ipOfQstring = QHostAddress(QHostAddress::LocalHost).toString();

 

posted @ 2018-09-10 08:44  xianyongchao  阅读(185)  评论(0编辑  收藏  举报