<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Detect user activity?]]></title><description><![CDATA[<p dir="auto">Is there some way to detect global user activity from Qt? Like have an app sitting in the tray that can start a timer when the user moves the mouse or touches the keyboard and then stop that timer when there is no input for say 5 minutes?</p>
<p dir="auto">I've done this before on Windows using global hooks, but I don’t think that's a thing on Mac/Linux and I want to make the app cross platform.</p>
<p dir="auto">It doesn’t need to get the exact keys or mouse coordinates, just that they have or haven’t been touched. Or even just a generic message saying there was some sort of user input.</p>
]]></description><link>https://forum.qt.io/topic/134565/detect-user-activity</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 19:24:34 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/134565.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 23 Feb 2022 05:00:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Detect user activity? on Wed, 23 Feb 2022 06:09:21 GMT]]></title><description><![CDATA[<p dir="auto">not in a platform neutral manner.  Look at screensaver sourcecode.  That does what you are looking for,</p>
]]></description><link>https://forum.qt.io/post/703864</link><guid isPermaLink="true">https://forum.qt.io/post/703864</guid><dc:creator><![CDATA[Kent-Dorfman]]></dc:creator><pubDate>Wed, 23 Feb 2022 06:09:21 GMT</pubDate></item></channel></rss>