title: Where is Qt’s PointerToMemberFunction defined?
body: <p>In <a href="https://stackoverflow.com/questions/28441710/attaching-signals-and-slots-to-an-object-within-a-qsharedpointer">this question</a> I was able to adapt the <code>QObject</code> method</p>
  
  <pre><code>QMetaObject::Connection
  QObject::connect(const QObject * sender,
      const char * signal,
      const QObject * receiver,
      const char * method,
      Qt::ConnectionType type = Qt::AutoConnection)
  </code></pre>
  
  <p>into a variant that accepted a <code>QSharedPointer</code> instead of a <code>QObject*</code> as its first parameter:</p>
  
  <pre><code>template&lt;class T&gt; QMetaObject::Connection
  connect_from_pointer(const QSharedPointer&lt;T&gt; &amp;sender,
      const char *signal,
      const QObject *receiver,
      const char *method,
      Qt::ConnectionType type = Qt::AutoConnection)
  </code></pre>
  
  <p>I’d like to do the same thing with the version that takes function pointers,</p>
  
  <pre><code>QMetaObject::Connection
  QObject::connect(const QObject * sender,
      PointerToMemberFunction signal,
      const QObject * receiver,
      PointerToMemberFunction method,
      Qt::ConnectionType type = Qt::AutoConnection)
  </code></pre>
  
  <p>but I can’t figure out what <code>PointerToMemberFunction</code> is or where it’s defined! What is this type?</p>