开发者

Qt, exclude an Event from qApp->processEvents()

开发者 https://www.devze.com 2023-01-28 23:38 出处:网络
I have a loop that performs heavy IO so I call qApp->processEvents() from time t开发者_如何学Pythono time to keep the GUI reactive. On Linux this leads to a serious bug because an Event is called ahea

I have a loop that performs heavy IO so I call qApp->processEvents() from time t开发者_如何学Pythono time to keep the GUI reactive. On Linux this leads to a serious bug because an Event is called ahead of schedule.

Is there a possiblity to exclude the Event from qApp->processEvents()?


I don't know if you can exclude it from processEvents but by installing an event filter you should be able to prevent the event from being handled.

0

精彩评论

暂无评论...
验证码 换一张
取 消