Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Solve the problem of failed call to readAll () function in QTcpSocket class

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report