title: Remove icon space from QMenu
body: <p>I'm working on a Qt application (in C++). Without appyling any styles, my menu looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/Exu5b.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Exu5b.png" alt="enter image description here"></a></p>
  
  <p>I'd like it to look like this:</p>
  
  <p><a href="https://i.stack.imgur.com/XCpw2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/XCpw2.png" alt="enter image description here"></a></p>
  
  <p>How do I achieve this? Either using qss, or programmatically?</p>
  
  <p>I already tried this, without success:</p>
  
  <pre><code>    menu-&gt;addAction(tr("Add"), this, SLOT(CreateNewWaypoint()))-&gt;setIconVisibleInMenu(false);
  </code></pre>
  
  <p>Answers for both Qt4.8 and Qt5 are needed to get the full bounty!</p>