title: Connecting overloaded signals and slots in Qt 5
body: <p>I'm having trouble getting to grips with the new signal/slot syntax (using pointer to member function) in Qt 5, as described in <a href="https://wiki.qt.io/New_Signal_Slot_Syntax" rel="noreferrer">New Signal Slot Syntax</a>. I tried changing this:</p>
  
  <pre><code>QObject::connect(spinBox, SIGNAL(valueChanged(int)),
                   slider, SLOT(setValue(int));
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code>QObject::connect(spinBox, &amp;QSpinBox::valueChanged,
                   slider, &amp;QSlider::setValue);
  </code></pre>
  
  <p>but I get an error when I try to compile it:</p>
  
  <blockquote>
    <p>error: no matching function for call to <code>QObject::connect(QSpinBox*&amp;,
    &lt;unresolved overloaded function type&gt;, QSlider*&amp;, void
    (QAbstractSlider::*)(int))</code></p>
  </blockquote>
  
  <p>I've tried with clang and gcc on Linux, both with <code>-std=c++11</code>.</p>
  
  <p>What am I doing wrong, and how can I fix it?</p>