title: How to get selected qRadioButton from a qRadioButton array within QHBoxLayout
body: <p>I want to create a array of, say 10, radio buttons and later check which radio buttons is selected.  Here is how I do it:</p>
  
  <p>creating array of radio buttons</p>
  
  <pre><code>a=QtWidgets.QHBoxLayout()
  for j in range(10):
      a.addWidget(QtWidgets.QRadioButton(str(j+1))
  </code></pre>
  
  <p>check which radio button is selected</p>
  
  <pre><code>for j in a.children():
      if j.isChecked():
             print(j.text())
  </code></pre>
  
  <p>which never returns any text and <code>a.children()</code> is <code>[]</code></p>
  
  <p>What am I doing wrong?</p>