我尝试获取用于PyQT5的QThreadPool的排队作业数。
我的用例在这里:
strWorkersStats = str(QThreadPool.globalInstance().activeThreadCount()) + \
' / todo.. need numQueuedThreads here..' + \
'[' + str(QThreadPool.globalInstance().maxThreadCount()) + ']'
我很好奇,因为这应该是显而易见的需要,但是我找不到答案。