新手求助,基于QT编写的局域网聊天软件,根据网上的例程,但是出现如下错误,求大神帮忙,环境Qt5.6 10
代码:udpSocket->writeDatagram(data,data.length(),QHostAddress::QHostAddress(ui->tableWi...
代码:udpSocket->writeDatagram(data,data.length(),QHostAddress::QHostAddress(ui->tableWidget->item(index.row(),2)->text()), port);
错误:cannot call constructor 'QHostAddress::QHostAddress' directly [-fpermissive]
udpSocket->writeDatagram(data,data.length()QHostAddress::QHostAddress(ui->tableWidget->item(index.row(),2)->text()), port);
提示出现无法调用构造函数的错误,请问哪位大神帮忙解决一下 展开
错误:cannot call constructor 'QHostAddress::QHostAddress' directly [-fpermissive]
udpSocket->writeDatagram(data,data.length()QHostAddress::QHostAddress(ui->tableWidget->item(index.row(),2)->text()), port);
提示出现无法调用构造函数的错误,请问哪位大神帮忙解决一下 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询