[maemo-developers] QtMobility app shows, hides, shows again at startup
From: David Talmage talmage at acm.orgDate: Wed Apr 13 16:50:53 EEST 2011
- Previous message: QtMobility app shows, hides, shows again at startup
- Next message: maemo.org Website Bug Jar 2011.15
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Saturday, April 09, 2011 04:11:08 am Thomas Perl wrote: > 2011/4/8 David Talmage <talmage at 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
- Previous message: QtMobility app shows, hides, shows again at startup
- Next message: maemo.org Website Bug Jar 2011.15
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]