[Qt-interest] Windows Aero effect with show() and hide()

Nikos Chantziaras realnc at arcor.de
Tue Jan 11 00:17:22 CET 2011


On 01/10/2011 10:47 PM, K. Frank wrote:
> Hi Nikos!
>
> On Sun, Jan 9, 2011 at 4:46 PM, Nikos Chantziaras<realnc at arcor.de>  wrote:
>> I noticed that when I hide() a window (QDialog in this case) and then
>> show() it, Windows Aero will not do the effect it usually does when a
>> window opens.  The effect only shows when I delete the QDialog and
>> create it again.
>>
>> Anyone else noticed this?  This is on Windows 7 x64.
>
> I'm not sure precisely what Aero "effect" you are looking for,
> but I do see a slight difference in the two cases you describe.

I mean the way Aero will kind of fade and zoom-in the window instead of 
just pop it in out of nowhere.


> I am also using 64-bit windows 7 (and Qt 4.6 with 32-bit mingw
> g++ 4.4.1).

Qt 4.7.1 with GCC 4.5.2 here (on Linux; I'm cross-compiling from Linux 
to Windows).  But it seems it behaves the same as your system.


> I wrote a short test program where a QDialog main window has
> two check boxes to trigger either show / hide or new / delete
> of two child dialogs.
>
> Both hide and delete of the child dialog causes the dialog to
> fade out slightly as it disappears.  I do not perceive a difference
> between hide and delete.

Same here.  Closing the window always triggers the same effect.


> In the case of new, the child dialog fades in slightly, while in
> the case of show, it appears more abruptly, although the
> difference is not dramatic.

This is what I mean.  So I guess you just confirmed it and I won't have 
go chasing ghosts :-)  Thanks.



More information about the Qt-interest-old mailing list