Hi, I have a problem. I've got a main window and run from it QDialog. QDialog in the constructor loads a lot of data (it takes about 3-4 seconds while the program is not responding):
Qt Code:
  1. Statistics * s = new Statistics (this->klient, this);
  2. s->exec();
  3. delete s;
To copy to clipboard, switch view to plain text mode 
I wanted to make splash screen to fill this gap. And when constructor go to end emits a signal that is associated with a slot close() of splash screen:
Qt Code:
  1. QSplashScreen * sS = new QSplashScreen(QPixmap(":/images/logo"));
  2. sS->ShowMessage("Generating statistics", Qt::AlignCenter);
  3. sS->show();
  4. Statistics * s = new Statistics(this->klient, this);
  5. connect (s, SIGNAL (loaded()), sS, SLOT (close()));
  6. s->exec ();
  7. disconnect (s, SIGNAL (loaded ()), sS, SLOT (close ()));
  8. delete s, sS;
To copy to clipboard, switch view to plain text mode 
Unfortunately splash screen doesn't show from the beginning, only for a moment before opening QDialog.

Do you have any idea how to solve it?