title: Use a QMap in a slot
body: <p>I want to use a QMap that I have previously created to be used inside a slot. I've tried following <a href="https://stackoverflow.com/questions/4229080/qt-cant-pass-qmap-through-to-slot">this</a> but it still did not work (I think I am just doing something stupid). Here is the code I am using.</p>
  
  <p>Constructor:</p>
  
  <pre><code>QMap &lt;int, QList&lt;int&gt; &gt; tiles;
  connect(ui-&gt;lineEdit, SIGNAL(editingFinished()), this, SLOT(someSlot()));
  </code></pre>
  
  <p>Now, whenever I send the signal editingFinished, I want someSlot to check if the value is in the QMap and proceed with the various conditions if it is. Problem is, how do I pass my QMap to a slot? Qt does not seem to allow slots with parameters.</p>