The QtNetwork module provides classes to make network programming easier and portable.
To include the definitions of the module’s classes, use the following directive:
#include <QtNetwork>To link against the module, add this line to your qmake .pro file:
QT += networkThe QtNetwork module is part of the Qt Full Framework Edition and the Open Source Versions of Qt .