Solve the problem of failed call to readAll () function in QTcpSocket class
Operating environment: VS2013+Qt5.5
Error prompt:
First, we need to trace the code to determine which statement caused the error. After troubleshooting, we found that the error was triggered when the following statement was executed.
Solution:
1. Select the project, right-click, and select "Export Project to .pri File..." Option to export it.
two。 Open the .pri file you just exported and add the "QT + = network widgets" statement at the beginning
3. Change the file suffix name of .pri to the suffix name of .pro.
4. Open the VS2013 software, find the "Qt5" in the menu bar, open and select "Open Qt Project File (.pro)." Option, import the .pro file into it.
5. Just finish the compilation.