[Qt-interest] setMouseTracking

william.crocker at analog.com william.crocker at analog.com
Fri Jan 7 23:58:51 CET 2011


>>>>
>>>> Right on and thanks a lot to everyone (and esp. Bill for the final idea)
>>> Of course you should know that this makes your application run code
>>> all the time, waking up the CPU even when idle. Users are known to
>>> throw darts at pictures of the developer for stuff like this :-)
>>>
>> I agree.
>> You should query at the lowest acceptable frequency.
>> You could then scale the frequency up and down with
>> the apparent mouse velocity.
> 
> I think the best approach to this is to simply write a custom event 
> filter and install it on the global application pointer.  And here's how 
> it's done:
>

I was under the impression that he wanted to track the mouse
(no buttons pressed) even when it was not over the subject application.

Bill



More information about the Qt-interest-old mailing list