QSplashScreen-Replacement-for-Semitransparent-Images: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
(No difference)

Revision as of 16:39, 14 January 2015

CSplashScreen

The CSplashScreen class can be used as a replacement for the Qt class QSplashScreen if semitransparent images using an alpha channel with more than 1 bit needs to be used.

The new class tries to mimic as much as possible the functionality and appearance of the original QSplashScreen class and only misses a few methods to keep this code snipped as simple as possible.

In the implementation all comes down to use a QFrame with the Qt::WA_TranslucentBackground attribute and emulate the functionality of QSplashScreen.

CSplashScreen.pro

CSplashScreen.h

CSplashScreen.cpp

main.cpp

Example

File:Csplashscreen.png

Categories: