Follow these steps to create a TCP server:
- First, let's create a Qt Console Application project from File | New File or Project, as shown in the following screenshot:
- After that, go to File | New File or Project again. But this time, select C++ Class under the C++ category, as shown in the following screenshot:
- Then, name your class as server. Set its base class to QObject and make sure the Include QObject option is checked before clicking the Next button. Once the class has been created, two files will be created for you— ...