这是阻塞模式吧,我想用非阻塞模式。
【 在 dormouseBHU 的大作中提到: 】
: 还有一个问题。既然读取网络数据不在主线程中,就不应该用readyRead,而是应该用 waitForReadyRead。
: Qt 文档写的很清楚:
: This function can operate without an event loop. It is useful when writing non-GUI applications and when performing I/O operations in a non-GUI thread.
: ...................
--
FROM 45.78.57.*