Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
QInputEvent'stimestamp()方法“返回此事件的窗口系统时间戳。” 返回类型是ulong, 并且包含毫秒,但 android 上的本机时间戳是int64_t并且包含纳秒。
QInputEvent
timestamp()
ulong
int64_t
我可以为 Qt 中的事件获取具有微秒或纳秒分辨率的时间戳吗?
我找不到QInputEvent在 Android 上设置时间戳的源代码。它在哪里?也许我可以修补 Qt 以获得带有纳秒时间戳的额外字段。