[Qt-interest] Minimize B on Minimize A.

william.crocker at analog.com william.crocker at analog.com
Thu Jul 1 02:01:32 CEST 2010



Andreas Pakulat wrote:
> 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

Yes I remember.
I tried that in the past and windows show a state
change to minimized if the user changes work spaces.
*BUT*, they return to normal when the user returns to
the parent work space. I should be able to work with that.

Thanks for the reminder.

Bill

----------
Now that I think about it, minimizing windows
in non-active work spaces is a good way to tell
them that they should assume an idle state.




More information about the Qt-interest-old mailing list