invalid use of incomplete type ‘struct QHostAddress’
forward declaration of ‘struct QHostAddress’
Such an error message in Qt usually means that you have to #include <Q...>
遇到这样的错误通常意味着你需要添加头文件 #include <Q...>
http://blog.163.com/zhj_44/blog/static/1135752520132582915241/