Hi,
This example show me a splash screen for 5 seconds, an then the main window.
Qt Code:
  1. #include <QtGui/QApplication>
  2. #include "mainwindow.h"
  3. #include <QSplashScreen>
  4. #include <QTimer>
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8. QApplication a(argc, argv);
  9. splash->setPixmap(QPixmap("f0.png"));
  10. splash->show();
  11. splash->showMessage(QObject::trUtf8("A preparar a janela principal ..."), Qt::AlignRight|Qt::AlignTop, Qt::black);
  12. MainWindow w;
  13. QTimer::singleShot(5000, splash, SLOT(close()));
  14. QTimer::singleShot(5000, &w, SLOT(show()));
  15. return a.exec();
  16. }
To copy to clipboard, switch view to plain text mode 

During those 5 secs if i click on the QSplassScreen i have "nothing" until the main window shows up.

Can i disable the possibiliti of clicking on the splashscreen?

Thanks