Basic Networking with Qt
summary
Covers Qt networking primitives: QTcpSocket/QTcpServer for TCP, QUdpSocket for UDP broadcast discovery, QSslSocket for encryption, QHostInfo/QDnsLookup for names, and QNetworkAccessManager/QNetworkReply for HTTP. Builds a local LAN chat that autodiscovers peers by broadcasting a magic string every 10 seconds, receives chat via a small QTcpServer + HTTP state machine, and sends JSON messages from QML using XMLHttpRequest through QNetworkAccessManager JSON over HTTP. Live demo shows discovery and messaging working.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:08Qt network stack overview
- 3:41Network considerations
- 4:28Local chat demo
- 6:09Automatic node discovery
- 10:22Receiving discovery data
- 12:23HTTP chat communication
- 13:49Implementing the server
- 16:40QML network integration
- 18:26Q&A session








