title: How to enable --leak-check=yes for valgrind in Qt Creator?
body: <p><strong>System Info:</strong> Ubuntu 16.04, Qt Creator 4.2.0, valgrind 3.12.0</p>
  
  <p>When using valgrind from the console to output detailed leak analysis I do it like that:</p>
  
  <p><code>valgrind --leak-check=yes ./my_application --an_argument</code></p>
  
  <p>Since I want to use Qt Creator's nice output formatting and filtering of the reported issues I tried to use valgrind within the editor but I cannot configure any arguments (such as --leak-check) for valgrind itself. The dialog looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/bBYFo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bBYFo.png" alt="valgrind configuration within Qt Creator"></a></p>
  
  <p>Can I do this somewhere in a config file or in hidden dialog options?</p>
  
  <p><strong>Edit:</strong> I accepted the answer that explicitly mentions the --leak-check option but other answers mentioning a wrapper script from inside Qt Creator is a very nice way to go. Unfortunately there is still a difference in the outputs within Qt Creator compared to valgrind from the console so I guess that there are suppression files used inside Qt Creator... but that's a different topic.</p>