My program has a lengthy initialization routine. If I call the routine before the app.exec() there is a long wait before the main window appears which I would like to avoid.

How can I get the window showing first and then the initialization routine started without user involvement?

I may have to intercept QEvent::ApplicationActivate or something event like that ???

Appreciate any help
Enno