代码:
xchat->bind( QHostAddress::QHostAddress(getIP()), xport );
xchat->writeDatagram(data,data.length(),QHostAddress::QHostAddress(xpasvuserip), 45456);
错误:
/home/mohammed/Desktop/chat2015.2.5/chat.cpp:280: error: cannot call constructor 'QHostAddress::QHostAddress' directly [-fpermissive]
如上编码会出现无法代用构造函数的错误,请问哪位大神帮忙解决一下