title: How does QSignalMapper work?
body: <p>After my post here : <a href="https://stackoverflow.com/questions/24257789/associate-signal-and-slot-to-a-qcheckbox-create-dynamically/24258067#comment37473258_24258067">Associate signal and slot to a qcheckbox create dynamically</a> I need to associate :</p>
  
  <p>• The signal <code>clicked()</code> when I click on a <code>qCheckBox</code> to my function <code>cliqueCheckBox(QTableWidget *monTab, int ligne, QCheckBox *pCheckBox)</code></p>
  
  <p>To do so, I have to use <code>QSignalMapper</code>, after two hours of trying to understand how it works, I can't have a good result, here's the code I make, this is obviously wrong :</p>
  
  <pre><code> QSignalMapper *m_sigmapper = new QSignalMapper(this);
   QObject::connect(pCheckBox, SIGNAL(mapped(QTableWidget*,int, QCheckBox*)), pCheckBox, SIGNAL(clicked()));
   QObject::connect(this, SIGNAL(clicked()), this, SLOT(cliqueCheckBox(QTableWidget *monTab, int ligne, QCheckBox *pCheckBox)));
  
   m_sigmapper-&gt;setMapping(pCheckBox, (monTab,ligne, pCheckBox));
   QObject::connect(m_sigmapper, SIGNAL(clicked()),this, SLOT(cliqueCheckBox(QTableWidget *monTab, int ligne, QCheckBox *pCheckBox)));
  </code></pre>
  
  <p>Can you explain to me, how <code>QSignalMapper</code> works ? I don't really understand what to associate with :( </p>