title: QT and check boxes problem
body: <p>probably what i am asking is very easy, but i'm stuck! :(</p>
  
  <p>i have a <code>QWidget</code> in which i load a <code>QGridLayout</code> in which i add a number of <code>QCheckBox</code>'es</p>
  
  <p>i can't seem to figure out how to catch the changestate signal from the checkboxes....</p>
  
  <p>the check boxes are added in a for loop, in which i create a new QCheckBox
  which and adding it as a widget to the qgridlayout...</p>
  
  <p>what am i supposed to connect?
  each button's changestate signal to my custom slot, or something else?</p>
  
  <p>the code i use is</p>
  
  <pre><code>QGridLayout *myLayout = new QGridLayout;
  for (int i=0; i&lt;(int)m_List.size(); i++)
  {
      QCheckBox *button = new QCheckBox;
      button-&gt;setText(m_List[i].m_strName.c_str());
      button-&gt;setIcon(QIcon(m_List[i].m_strThumbNailPath.c_str()));
      button-&gt;setIconSize(QSize(50, 50));
      button-&gt;setCheckable(true);
      myLayout-&gt;addWidget(button);
      connect(button, SIGNAL(stateChanged), this, SLOT(checkboxStateChanged));
  }
  
  
  myLayout-&gt;setRowStretch(2, 10);
  myLayout-&gt;setColumnStretch(2, 10);
  
  QWidget *myWidget = new QWidget;
  myWidget-&gt;setLayout(myLayout);
  
  myToolbox = new QToolBox;
  myToolbox-&gt;addItem(myWidget, "Options");
  </code></pre>
  
  <p>it displays the checkboxes correctly, i can check and un-check them, but i can't catch the signal...
  what am i missing?
  Thanks!</p>