O'Reilly logo

Game Programming using Qt 5 Beginner's Guide - Second Edition by Lorenz Haas, Witold Wysota, Pavel Strakhov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The client

The GUI of the client (TcpClient) is pretty simple. It has three input fields to define the server's address (ui->address), the server's port (ui->port), and a username (ui->user). Of course, there is also a button to connect to (ui->connect) and disconnect from (ui->disconnect) the server. Finally, the GUI has a text edit that holds the received messages (ui->chat) and a line edit (ui->text) to send messages.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required