title: Qt Application quits after slot of QAction gets triggered
body: <p>I've created an action for my QMenu and connected it to a slot "action1" like this </p>
  
  <pre><code>connect(action, SIGNAL(triggered()), this, SLOT(action1()));
  </code></pre>
  
  <p>but when i execute this code, my application quits. </p>
  
  <p>How to solve this?</p>