pyQt相当于asyncore/asynch

2024-05-19 01:36:31 发布

您现在位置:Python中文网/ 问答频道 /正文

pyQt中是否有一个等价的asyncore/asynchat?在

如果没有,那么我相信只要在客户机-服务器GUI应用程序中使用asyncore/asynchat就不会有问题,对吧?在


Tags: 服务器应用程序客户机guipyqt等价asyncoreasynchat
1条回答
网友
1楼 · 发布于 2024-05-19 01:36:31

是的,QNetwork模块中的qtcsocket/QTcpServer可以异步工作,就像QNetwork的大多数类一样。在

来自http://doc.qt.io/qt-4.8/network-programming.html的文档:

QTcpSocket works asynchronously and emits signals to report status changes and errors, just like QNetworkAccessManager and QFtp.

相关问题 更多 >

    热门问题