title: Attempting to get signal from checkbox change
body: <p>The following code sets up a list of checkboxes.</p>
  
  <pre><code>QWidget *w = new QWidget(this);
  w-&gt;setFixedSize(300,200);
  QVBoxLayout *vbox = new QVBoxLayout;
  
  foreach(QString filt, filters){
      QCheckBox *checkbox = new QCheckBox(filt, this);
      checkbox-&gt;setChecked(true);
      vbox-&gt;addWidget(checkbox);
  
      connect(this, SIGNAL(statechanged(int)), this, SLOT(cbstate(int)));
  
  }
  
  w-&gt;setLayout(vbox);
  w-&gt;show();
  </code></pre>
  
  <p>The idea is that when the user checks or unchecks an item, it will emit a signal.</p>
  
  <p>In the header file, I have included the following in the private slots:</p>
  
  <pre><code>void cbsate(int state);
  </code></pre>
  
  <p>And in the cpp file, I have declared this:</p>
  
  <pre><code>void MainWindow::cbstate(int state){
      if(state == 0){
          //unchecked
          QMessageBox::information(this, "Unchecked", "You have unchecked this box");
      }
      else if (state == 2){
          //checked
          QMessageBox::information(this, "Checked", "You have checked this box");
      }
  }
  </code></pre>
  
  <p>I'm now getting an error of </p>
  
  <blockquote>
    <p>no 'void MainWindow::cbstate(int)' member function declared in class 'MainWindow'</p>
  </blockquote>
  
  <p>Any ideas? Am I going about this correctly? Thanks.</p>