QTcpServer重写incomingConnection()函数不进入解决方法

最近在弄中标麒麟下的一个软件,发现重写了incomingConnection(),当客户端连接后 ,并没有进入该重写的函数。

点击监听的时候,出现“unhandled client message”

解决办法:

查看当前qt creator下的QTcpServer类中的incomingConnection()函数的形参,如果是int 则该成int,如果是qintptr,则将incomingConnection(qintptr handle);

猜你喜欢

转载自blog.csdn.net/weixin_41882459/article/details/110881298