title: QWidget based class slot in QML
body: <p>I'm using Qt 4.7.3 and trying to solve the following problem.</p>
  
  <p>I have a QML view with a QWidget based item on it ( I register it by calling qmlRegisterType("custom_qml_components", 1, 0, "Graphics");
  ). So far so good, this element is displayed in the window. But now, I want to use it's slot which should take QVector as a parameter. </p>
  
  <p>What is the right way to connect such a slot to my signal?</p>
  
  <p>As a first solution inside my mind I tried the following approach :
  1. Declare  Q_PROPERTY( QVector dataFrame WRITE displayFrame ) for GraphicWidgetProxy class.
  2. Declare the following slot inside QML file :</p>
  
  <pre><code>   function displayDataSlot ( dataBlock )
     {
        graph1.dataFrame = dataBlock;
     }
  </code></pre>
  
  <p>where</p>
  
  <p>Graphics
    {
       id: graph1
       anchors.top: parent.top
       anchors.left: parent.left
       width: parent.width
       height: parent.height
    }</p>
  
  <p>But unfortunately the connection like :</p>
  
  <pre><code>QObject::connect( this, SIGNAL( displayDataSignal(QVector&lt;float&gt;) ), 
  characteristicsViewObject, SLOT( displayDataSlot(QVector&lt;float&gt;) ) );
  </code></pre>
  
  <p>doesn't work...</p>
  
  <p>Any ideas would be highly appreciated...</p>
  
  <p>Thanks in advance,
  BR,
  Dmitry</p>