A solution to the problem of "stopped working" program when QT program exits

Source: Internet
Author: User
Demand

Automatically remove the release exception after setting the window to close

While running, press and hold ALT+F4 to force quit the program, the program window closes after a while, the system will error, the screenshot below:


Solution Ideas

1. Prioritize code exceptions, start by looking at the code, see where the exception is, and finally navigate to the following code exception

SetAttribute (Qt::wa_deleteonclose);
According to the normal reason is impossible to abnormal rush out, but the actual results and expectations do not match.

2. Re-establish the new project, plus the above code, or the collapse

3. Replacement of another computer, ALT+F4 exit does not break the conclusion

Perhaps because the computer installed a lot of software, vs2008,vs2010,qt4.7,qt5.2 Static library version and dynamic library version, but also various environments, resulting in some environment variables or library version of the wrong and so on one of these reasons.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.