[Qt-interest] Window activation signal?
william.crocker at analog.com
william.crocker at analog.com
Thu Feb 24 16:19:04 CET 2011
Thiago Macieira wrote:
> Em quinta-feira, 24 de fevereiro de 2011, às 14:35:35, lbutler3 at comcast.net
> escreveu:
>> I have an application with multiple top windows. I can query which window is
>> "active", but is there a signal I can get when a window is
>> activated/entered? I'm looking for this because I want to adjust the
>> application menus and toolbar for each type of window. Is there a better
>> approach?
>
> There are events sent to each window when they're entered, raised and/or
> focussed.
>
Install an event filter on the main application object.
You can then perform some action, like moving the mouse into a window,
and see what events are generated.
monitoredObj->installEventFilter(filterObj);
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list