I've this code snippet:
class Server{
public slot:
static void readMessage();
};
// somewhere in the main code...
connect(tcpsocket, &QTcpSocket::readyRead, Server::readMessage);
error: no matching function for call to 'QObject::connect(const Object*&, void (QIODevice::&)(), const Object&, void (Server::*&)(), Qt::ConnectionType)' return connect(sender, signal, sender, slot, Qt::DirectConnection);
I don't know how to deal with that.