Qt5 beginners may encounter some compilation errors and debugging steps (cainiao On The Road)

Source: Internet
Author: User

1. The Code cannot be properly constructed during compilation:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4C/BF/wKiom1REx-HQH8FlAAGpIumxKGQ496.jpg "Title =" qq 41020163424.jpg "alt =" wKiom1REx-HQH8FlAAGpIumxKGQ496.jpg "/>

Because QT cannot recognize Chinese characters, when the file name is set to "example", the target file cannot be opened and the process ends automatically. Therefore, when saving the program, the file name should be in English.

② When no header file is added, various errors will be reported.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4C/C5/wKioL1RFDwXT1rBYAAGQO18gfv8206.jpg "Title =" qq 51120425524.jpg "alt =" wkiol1rfdwxt1rbyaagqo18gfv8206.jpg "/>

2. qt5 debugging:

(1) syntax error correction: the "problem" window will report the error content and the number of lines where the error is located.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4C/C2/wKioL1RE3pPSGC6nAAEJUgIcGmw851.jpg "Title =" qq 41080913.jpg "alt =" wkiol1re3ppsgc6naaejugicgmw851.jpg "/> (2) set the breakpoint: F9. 650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4C/C1/wKiom1RE3xDAKJZtAABnRQAad0M609.jpg "Title =" qq 41020181317.jpg "alt =" wkiom1re3xdakjztaabnrqaad0m609.jpg "/>

(3) program debugging and running: the shortcut key f5.

(4) view and modify the value of a Variable

Qt5 beginners may encounter some compilation errors and debugging steps (cainiao On The Road)

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.