As usual, let's create a new project using Qt Creator. The following steps will help:
- We can create a new project by going to File | New File or Project and selecting Qt Widgets Application.
- 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