Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt frames disappears after a while

I have done a Windows form application in Qt and I have some QPushButton, QGroupBox and so on and the application is working great.

But when i leave the application to the next day, i see that all frames around buttons, groupboxes and all widgets that have frames dissapears. But the application still working as it should.

How it looks Here i have edited a picture how it looks.

Application sets some stylesheets on some widgets in other dialogs, and sets some widget enabled on and off.

But is there anyone that has got same problems? And maybe have an explaining why it happens?

like image 408
Alexander Avatar asked Mar 01 '13 13:03

Alexander


1 Answers

Perhaps, your program leak GDI Objects.

A windows application can only use 9999 GDI Objects. when your application leak too many GDI Objects, your application will looks look as your picture.

You can press Ctrl+Shift+Esc to see how many GDI Objects your application used.

like image 196
pjincz Avatar answered Oct 20 '22 10:10

pjincz