QMetaObject::invokeMethod使用BlockingQueuedConnection连接会导致界面卡顿

为什么QMetaObject::invokeMethod使用BlockingQueuedConnection这个连接方式会导致界面卡顿呢

使用Qt::BlockingQueuedConnection连接方式会使得发送信号的线程被堵塞直到slot返回。如果发送信号在主线程(即GUI线程),那么界面就会出现卡顿。你应该改用Qt::QueuedConnection
https://doc.qt.io/qt-6/qt.html#ConnectionType-enum

Same as Qt::QueuedConnection, except that the signalling thread blocks until the slot returns. This connection must not be used if the receiver lives in the signalling thread, or else the application will deadlock.