title: Qt signals and slots pass by reference
body: <pre><code>void Scene::mousePressEvent( QMouseEvent * iEvent )
  {
      Square temp;
  
      emit GetSquareParameters( temp.color.red, temp.color.green, temp.color.blue, temp.size );
  
      m_Squares.push_back( temp );
  }
  </code></pre>
  
  <p>I get mouse coords from <code>QMouseEvent</code> and need to get parameters from some sliders of the <code>MainWindow</code>. I create signal <code>GetSquareParameters</code> in the <code>Scene</code> and SendSliderParams slot in <code>MainWindow</code>. </p>
  
  <p>Signal and slot are conected like a<br>
  <code>connect( ui-&gt;widget, SIGNAL( GetSquareParameters( int, int,int,int)), this, SLOT( SendSliderParams( int, int,int,int) ) );</code></p>
  
  <p>I can pass params back by reference for signal and slots ? If not how I can to realize behavior like I want ?</p>