python - pyQt 相当于 asyncore/asynchat

标签 python qt python-3.x pyqt

在 pyQt 中是否有等同于 asyncore/asynchat 的东西?

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

最佳答案

是的,QNetwork 模块中的 QTcpSocket/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.

关于python - pyQt 相当于 asyncore/asynchat,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6671038/

相关文章:

python - `save_count`参数动画matplotlib ``

c++ - QLineEdit : setValidator for 4bytes unsigned Integer not working

string - 使用字典选择不重叠的最大子串总和

python-3.x - Mac OSx : ModuleNotFoundError: No module named 'numpy'

django - 'ManyToManyDescriptor'对象在django 2中没有属性'all'

python - opencv python中图像倾斜检测的代码

python - 如何将过滤功能应用于多个列表中的项目?

python字符串格式,负号表示负数,但空格表示正数

c++ - QT COMPILER_MACROS 未在项目开始时定义

c++ - "undefined reference to ' QScriptEngine::QScriptEngine()"