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)