title: c++ qt QObject:: connect: No such slot
body: <p>I have defined my slot like this:</p>
  
  <pre><code>void choixPoints:: prendpixel1(Pixel depart)
  {
  //...
  }
  </code></pre>
  
  <p>and I want to execute the following sentence:</p>
  
  <pre><code>Pixel depart= picmou-&gt;define(); //definition of a pixel, well defined 
  connect(chp3, SIGNAL(clicked()), this, SLOT(prendpixel1(Pixel depart)));
  </code></pre>
  
  <p>However when I execute I obtain:</p>
  
  <pre><code>QObject::connect: No such slot choixPoints::prendpixel1(Pixel depart)
  </code></pre>
  
  <p>Why doesn't my slot work?</p>