[Qt-interest] Minimize B on Minimize A.
Andreas Pakulat
apaku at gmx.de
Wed Jun 30 22:01:13 CEST 2010
On 30.06.10 15:28:47, william.crocker at analog.com wrote:
> Hello:
>
> When the user minimizes(iconifies) top-level window A
> I would like to have my app automatically minimize
> top-level window B.
>
> The problem is that the event trail generated by
> minimizing a top level window (deactivate, hide...)
> appears indistinguishable from that generated by
> changing work spaces and I do not want to minimize
> B if the user changes work spaces.
>
> Any ideas?
There are special WindowStateChange events for
minimize/maximize/fullscreen. So you could install an event filter on A,
wait for the windowstate change event, check the current window state of
A and call the apropriate slot of B
Andreas
--
A tall, dark stranger will have more fun than you.
More information about the Qt-interest-old
mailing list