title: How to add a QAction to a map?
body: <p>I would like to add a QAction to a map in order to add that action to the menu file, so that I could then delete the action and replace it with another QAction in the same spot in the map.</p>
  
  <p>I've tried using removeAction, but it doesn't seem to be working for me and putting it into a map would make it much more efficient. This is what I'm trying to do, but I'm getting casting errors.</p>
  
  <p><code>actionMap.emplace(rem, (QAction*)addAction(filePath));
  </code></p>
  
  <p>Any help would be appreciated!</p>