QEventLoop: get time when an event was scheduled

丶灬走出姿态 提交于 2019-12-01 12:12:52

It mainly depends on what are the system events you are interested in, for you have already the timestamp in some cases.

As an example, QInputEvent (base class for events that describe user input, like QMouseEvent, QKeyEvent, and so on) has the member method timestamp that:

Returns the window system's timestamp for this event.

In other terms, a timestamp close to the time when it has been pushed into the event loop.

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