QSplashScreen鼠标点击时就退出了,看一下它的头文件,可以看到它重写了mousePressEvent,

我们继承一下QSplashScreen,重写这个函数,函数体为空就可以了

 

相关文章: