diff --git a/tcpcommander/tcpsocket.cpp b/tcpcommander/tcpsocket.cpp index ffe967f5..f87e7054 100644 --- a/tcpcommander/tcpsocket.cpp +++ b/tcpcommander/tcpsocket.cpp @@ -31,7 +31,7 @@ void TcpSocket::connectionTest() emit connectionTestFinished(true); testSocket->deleteLater(); }); - connect(testSocket, QOverload::of(&QAbstractSocket::error), this, [this, testSocket] { + connect(testSocket, static_cast(&QTcpSocket::error), this, [this, testSocket] { emit connectionTestFinished(false); testSocket->deleteLater(); });