title: With several widgets sharing the same signal slot (event handler), how do I find out which one has been clicked?
body: <p>In my project I am using a  custom circle-shaped button widget derived from the QWidget class. I have added several of these widgets to a parent widget.</p>
  
  <p>When one of these custom buttons is clicked, how do I find out which one was clicked?</p>
  
  <p>Adding custom button to parent widget:</p>
  
  <pre><code>void ShotViewCTRL::addShot(QString shotNanme)
  {
      ShotButton *btnShot=new ShotButton(this);
      btnShot-&gt;shotName=shotNanme;
  
      connect(btnShot,SIGNAL(Shot_Selected()),this,SLOT(SHOT_CLICKED()));
      btnShot-&gt;CreateButton();
      btnShot-&gt;show();
  
  }
  </code></pre>
  
  <p>My parent widget is <strong>ShotViewCTRL</strong> (inherits from QWidget), the child widget is <strong>ShotButton</strong> (custom control, inherits from QWidget).</p>
  
  <p>The control is working fine. It's sending sending to parent object. In my problem, I added the same custom control 10 times.</p>
  
  <p>I need to find which control was clicked? Please help me find the solution.</p>
  
  <p>I have referred to the Qt documentation to find the child widget, but I did't understand. Some sample code would be great.</p>