Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QSplashscreen background becomes black when I click on it repeatedly

I am using QSplashscreen to display a splashscreen in my application. Usually when I click on the splash screen while my applicaiton is loading the splash sccreen disappears. I saw that the mousepressevent on Qsplashscreen are made to call hide function of the widget.

But sometimes when I click on the splashscreen repeatedly the splashscreen background becomes black and if I continue clicking I get a message saying the applicaiton is not reponding. But after a while the app runs fine.

Why am i sometimes getting a blackbackground on mouse click on splashscreen? The Qt version i am using is 4.8.5

like image 706
sajas Avatar asked Jan 21 '26 07:01

sajas


1 Answers

I was running into this issue as well and I found the best solution was to disable the QSplashScreen that way any user interaction wouldn't fire any events.

I tested this on Qt v5.8 but this should also work for v4.8.5 as well.

like image 54
Epsilam Avatar answered Jan 22 '26 20:01

Epsilam