title: How to pass a signal as function parameter?
body: <p>So i am looking to make our own generic inherited checkbox class that will be able to take in some values in its constructor and pop out a widget that is fully connected to our model in the manner we need.</p>
  
  <p>Currently we do something like this within our view</p>
  
  <pre><code>connect(checkboxWidget, &amp;QCheckbox::Clicked, this, &amp;VMyView::Signal);
  </code></pre>
  
  <p>Which emits the Signal from VMyView when the checkbox is clicked.</p>
  
  <p>If i wanted to pass that signal as a parameter into my new inherited class to be hooked up in its own connect statement, how would I do so?</p>
  
  <p>Research has shown me i can pass a const char* but i get compilation errors that the signal/slot do not match.</p>
  
  <p>Example</p>
  
  <pre><code>CheckBox(View myView, const char* signal)
  {
      connect(this, &amp;QCheckBox::Clicked, myView, signal);
  }
  </code></pre>
  
  <p>Returns an error that Signal and slot arguments are not compatible.  Ive also tried SIGNAL(signal) with the same result.</p>