First, create a new Qt Console Application project. Then, open up the project file (.pro) and add in the following module:
QT += core network Qt -= gui
You should have noticed that this project doesn't have any gui module (we make sure it's explicitly removed) as we don't need any user interface for the server program. That is also the reason why we chose Qt Console Application instead of the usual Qt Widgets Application.
Actually, that's it—you have successfully added the networking module to your project. In the next section, we will learn how to create the server program for our chat system.