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.
