To create a TCP connection in Qt, we will use QTcpSocket. First, we need to connect with connectToHost.
So for example, to connect to a local tcp serveur: _socket.connectToHost(QHostAddress("127.0.0.1"), 4242);
Then, if we need to read datas from the server, we need to connect the signal...