How to see Qt Source code while coding by Qt Creator? -
How to view QT source code while coding by QT creator? When I debug my program and press the brake point, and when I press F11 on the Q function, the debugger steps in the source code of that function, it is very interesting stuff: now D, I have QT function in QT You will see the source code of the manufacturer on debug time: D
You need a QT debug build , And you have a building QT to make it yourself Not: see part of the documentation.
Adding Debug Edition to Qt Creator
The following instructions are for Qt Creator 2.0.0. If you are using a different version, then customize it as needed. First of all, you need to add your debug build to the list of available Qt editions.
- Select Tools > Options menu;
- Click the + button
- Click the Browse button and enter your custom-built QT
Bin
select the QMake binary inside the directory; - Click Reconstruction to create debugging helpers. this is important!
- Click OK .
During the compilation, configure the project to use your debug now.
- Return to the Qt Creator main window, select the Projects view;
- Select the tab corresponding to your project;
- On General , change the QT version to the version that you have added in the previous section.
Rebuild your project from scratch with new projects You should now be able to debug in QT code.
Comments
Post a Comment