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

K. Frank kfrank29.c at gmail.com
Mon Jan 10 21:47:06 CET 2011


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 am also using 64-bit windows 7 (and Qt 4.6 with 32-bit mingw
g++ 4.4.1).

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.

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.

If this is the difference in effect that you are asking about,
then I see it too.

(Note, in the new case in my test code, I first new the child
dialog, and then call show on it.  So in both cases, show is
called.)

Let me know if there is any other test you would like me to try.

Best.


K. Frank



More information about the Qt-interest-old mailing list