On Saturday, April 09, 2011 04:11:08 am Thomas Perl wrote:

> 2011/4/8 David Talmage <talm...@acm.org>:
> > My newly released PanicButton application [1] behaves strangely at
> > startup. When I start the application, it displays its window, then
> > immediately hides the window.  In a few but significant number of
> > seconds, it displays its window again.  It should display its window
> > ...
> 
> Is the first window that you see a black one that animates from the
> application icon to fill the screen and has the sound effect of an
> opening window attached to it? If so, it's just a fake window
> ...
> You can "fix" this by doing all the time-consuming operations *after*
> you have created and shown your window. You can usually populate your
> window with contents even after it has been shown, so that would be a
> good idea to do in that case. You can do this using single-shot
> QTimer, so that the main loop gets enough time to really show and draw
> the initial window.

This is good advice, Thomas.  Thank you.  Your solution worked perfectly.  My 
application now behaves as I want it to.

Dave
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to