Description

Wikipedia definition of a splash screen

Qt handles splash screens thanks to the QSplashScreen class.
XQSplashScreen is an extended version of the standard QSplashScreen class of Qt.

The original class works perfectly, but, in the case of a main window is opening really fast, the related splash screen will disappear almost without being showed.
The XQSplashScreen class enables developers with the ability of creating splash screens that remain visible for at least a minimum amount of time.

Example

Here is the minimalist example from the documentation of the QSplashScreen class :

The same example using XQSplashScreen will be (modifications are highlighted in green) :

As you can see, replacing one by the other is really simple.

Usage

Constructors

  • pixmap : QPixmap object to use as the background of your splash screen.
  • minimalDisplayDuration : The splash will be displayed for at least this amount of time expressed in milliseconds (display duration can be longer if application loading time is)
  • f : Window flags (see Qt documentation for more information)

  • parent : Parent widget for the splash screen, mostly useful to display the splash screen on a specific screen.
  • pixmap : QPixmap object to use as the background of your splash screen.
  • minimalDisplayDuration : The splash will be displayed for at least this amount of time expressed in milliseconds (display duration can be longer if application loading time is)
  • f : Window flags (see Qt documentation for more information)

Public members

  • next : Widget to display after the splash screen.

Download

Zip archive (1,2 KB)

License

XQSplashScreen is released under the GNU GPL v2.
Permission to use, copy, modify, and distribute this software and its documentation under the terms of the GNU General Public License is hereby granted. No representations are made about the suitability of this software for any purpose. It is provided “as is” without express or implied warranty.

Comments

Comments are closed.