title: What Qt type do I need to use to pass a lambda as a function argument?
body: <p>Now that Qt5 supports connecting signals to lambda functions, I would like to be able to pass a lambda as an argument to another function. I've got a function that looks something like this:</p>
  
  <pre><code>void SomeFunc(Functor f)
  {
      connect(obj, &amp;MyObject::someSignal, f);
  }
  </code></pre>
  
  <p>However, the compiler complains when I do that:</p>
  
  <pre><code>"Functor" has not been declared
  </code></pre>
  
  <p>Changing <code>Functor</code> to <code>QtPrivate::Functor</code> yields:</p>
  
  <pre><code>QtPrivate::Functor is not a type
  </code></pre>
  
  <p>Basically, all I want to do is pass the argument that <code>QObject::connect</code> is going to get to my function. What type do I need to use?</p>