[PyQt] SplashScreen and mousePressEvent

projetmbc projetmbc at club-internet.fr
Wed Apr 8 12:56:46 BST 2009

I would like to close a splashscreen if the user clicks on it. I decide 
to subclass QtGui.QSplashScreen to do that but the following code 
doesn't catch the mouse press event. Why ?

Best regards.

The code

class mySplashScreen(QtGui.QSplashScreen):
    def __init__(self, pixmap):
        super(QtGui.QSplashScreen, self).__init__(pixmap)
    def mousePressEvent(self, event):
        print 'ok'

More information about the PyQt mailing list