[Qt-interest] Qt mouse grabbing/ungrabbing question

Zeljko zeljko at holobit.net
Mon Sep 21 08:11:05 CEST 2009


Zeljko wrote:

> Zeljko wrote:
> 
>> Hi,
>> Qt-4.5.2 (linux, mac, winXP SP2)
>> Is there any event I can catch under Windows XP that informs me when
>> screen
>> saver started, display went into sleep, OS went into sleep  ?
>> 
>> I have problem (my customized widget (inherited from QAbstracScrollArea -
>> text editing) uses mouse grabbing / ungrabbing) under windows xp (mac &
>> linux works fine), when winxp go into sleep or screen saver activated
>> (freezes app - mouse grab is still present inside my widget but app
>> doesn't respond).
> 
> Anyone ?

I've found the reason :) .... QEvent::ApplicationDeactivate should be
listened and mouse ungrabbed here ....





More information about the Qt-interest-old mailing list