Qt Creator Manual

Detecting Memory Leaks

You can use the Memcheck tool included in the Valgrind tool suite to detect problems that are related to memory management in applications.

Note: Memcheck is supported on Linux and Mac OS.

After you download and install Memcheck, you can use it from Qt Creator. To analyze applications, select Debug > Start Analyzer > Start. While the application is running, Memcheck checks all reads and writes of memory and intercepts calls that allocate or free memory or create or delete memory blocks.

If problems are found, they are listed in the Analysis output pane. Select a link to move to the problematic code.

"Analysis output pane"

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();