title: How to get the state of Qcheckbox that is present inside the QGroupbox in PyQt
body: <p>My project contains Qdialog having multiple QGroupbox.Each GroupBox contains some number of checkboxes.The list of checkboxes is same for all the groupbox. I dont have much reputation to load an image :(</p>
  
  <p>Here the user is able to select the checkboxes based on his need and presses the ok button.Once the Ok Button is pressed, I should be able to get the list of checkboxes checked by the user. </p>
  
  <p>I am creating the checkboxes in a loop, here is the code:</p>
  
  <pre><code>def createGroupBox(self,livename,shotlist):        
  
      groupBox = QtGui.QGroupBox("Live-"+livename)        
      grpLayout = QtGui.QVBoxLayout()
      i=0
      while  i != (len(shotlist)-2):
          qChkBx_shot = QtGui.QCheckBox("Shot-"+shotlist[i], self)
          qChkBx_shot.stateChanged.connect(lambda: self.groupcheckBoxToggled(livename,qChkBx_shot.text()))
          grpLayout.addWidget(qChkBx_shot,QtCore.Qt.AlignCenter)
          i +=1
  
      groupBox.setLayout(grpLayout)
      return groupBox
  </code></pre>
  
  <p>GroupBox with the below code:</p>
  
  <pre><code>def InitUi(self,livelist,shotlist):
      scrolllayout = QtGui.QGridLayout()
  
      scrollwidget = QtGui.QWidget()
      scrollwidget.setLayout(scrolllayout)
  
      scroll = QtGui.QScrollArea()
      scroll.setWidgetResizable(True)  # Set to make the inner widget resize with scroll area
      scroll.setWidget(scrollwidget)
  
      i=0
      length = len(livelist)-2
      x,y=0,0 
  
      while x &lt;=  math.ceil(length/4):
          for y in range(0,4):
              if (i &lt; (length)):
                  groupbox=self.createGroupBox(livelist[i],shotlist)
                  self.groupboxes.append(groupbox)
                  scrolllayout.addWidget(groupbox, x, y)
              y +=1
              i +=1
          x+=1
  
      self.Okbutton = QtGui.QPushButton('OK',self)
      self.Okbutton.clicked.connect(lambda: self.buttonPressed())
      self.Okbutton.setMaximumWidth(100)
      layout = QtGui.QVBoxLayout()
      layout.addWidget(scroll)
  
      layout.addWidget(self.Okbutton,QtCore.Qt.AlignRight)
      self.setLayout(layout)        
      self.setWindowTitle("Customized LiveShotLiveSwitching")
      self.resize(1200, 500) 
      self.show()
  </code></pre>
  
  <p>Here my query is, I could able to retrive the value as which groupbox is been activated and I couldn't able to get the list of checkboxes checked under that groupbox. </p>
  
  <p>Can anybody help me to solve this...</p>