QApplication is lazy (or making other threads lazy in the app)

别说谁变了你拦得住时间么 提交于 2019-12-01 14:21:03
timday

Sounds a lot like the problem described here, in which case the solution of disabling Apple's power-saving "timer coalescing" (apparently introduced in 10.9) may help you.

(If QApplication specifically causes the problem, it's possibly because its C++ widget support is calling some old Mac API which really needs to be updated to Mac's Grand Central Dispatch. If you're on a recent Qt - tried the 5.5 beta? - and seeing this, it might be well worth filing a bug report. But really, especially for a "new application" you should consider ditching the C++ widgets for QGuiApplication and the wonderful world of QtQuick UI).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!