启动画面QSplashScreen鼠标点击的时候不退出

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

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

原文地址:https://www.cnblogs.com/coolbear/p/13157871.html