Setting up a project

As usual, let's create a new project using Qt Creator. The following steps will help:

  1. We can create a new project by going to File | New File or Project and selecting Qt Widgets Application.
  2. Once your project has been created, open your project (.pro) file and add the network keyword so that Qt knows that you need the Networking module in your project:
QT += core gui network