最近在弄中标麒麟下的一个软件,发现重写了incomingConnection(),当客户端连接后 ,并没有进入该重写的函数。
点击监听的时候,出现“unhandled client message”。
解决办法:
查看当前qt creator下的QTcpServer类中的incomingConnection()函数的形参,如果是int 则该成int,如果是qintptr,则将incomingConnection(qintptr handle);
最近在弄中标麒麟下的一个软件,发现重写了incomingConnection(),当客户端连接后 ,并没有进入该重写的函数。
点击监听的时候,出现“unhandled client message”。
解决办法:
查看当前qt creator下的QTcpServer类中的incomingConnection()函数的形参,如果是int 则该成int,如果是qintptr,则将incomingConnection(qintptr handle);