|  | 
 
time.elapsed()这里我等1s的话,很多tcp数据进来了,但readyRead信号没有被触发,槽函数也执行不了connect(tcpClient, &QTcpSocket::readyRead, this, [this]() {    QByteArray buffer;    buffer = tcpClient->readAll();    dispatch->parserFrame(buffer);  // 协议处理});connect(ui->btn_sendFile, &QPushButton::pressed, this, [this]() {    int cycleCnt = 0;    do    {        cycleCnt++;        耗时操作();        QElapsedTimer time;        time.start();        while(time.elapsed() < sysPara.cycleIntervalTime)        {            QCoreApplication::processEvents();        }    } while(sendFlow->isSendAllBlock() == false && cycleCnt < sysPara.repeatNum);});
这是啥原因啊?有什么办法解决吗?
 
 |