title: How to build a generic method to connect the notifySignal of different Q_PROPERTY types to a void slot(QVariant) from the property char * name?
body: <p>I'm trying to write a method, with two parameters : the <code>Q_PROPERTY</code> name (<code>char *</code>) and the <code>QObject *</code> associated with, that permit to connect the notifySignal (if exists) of the <code>Q_PROPERTY</code>, to a <code>void slot(QVariant)</code>, or to a slot dynamically builded which will call a <code>void method(QVariant)</code>. The signature of the signal can vary according to the type of the parameter.</p>
  
  <p>How can I achieve that in Qt 5? Maybe it's impossible, but I will not stop searching while I'm not sure of that.</p>
  
  <p>So I think I have 3 solutions:</p>
  
  <ul>
  <li><p>building dynamically a slot of the exact signature of the signal, from the signal name, and call a method(QVariant) in it, using the old Qt connect way: </p>
  
  <pre><code>connect(sender, SIGNAL (valueChanged(QString,QString)),
      receiver, SLOT (updateValue(QString)) );
  </code></pre></li>
  <li><p>using the new Qt 5 connect system: </p>
  
  <pre><code>connect(sender, &amp;Sender::valueChanged,receiver, &amp;Receiver::updateValue );
  </code></pre></li>
  <li><p>building all slots signatures that can be used with QVariant.</p></li>
  </ul>
  
  <p>Althougt, I don't know how to build a slot dynamically that call a specified method for the first solution ; I don't know how to retrieve the function pointer from the <code>QMetaMethod</code> of the notifySignal, for the second solution ; maybe the last solution is the best way, and easy to achieve, but it seams a bit extreme. </p>
  
  <p>What do you think about it?</p>