title: How to run a loop using gui object names in qt?
body: <p>I have a gui form, where multiple text boxes are present. I want to put their values inside an array.  One way of doing it is by writing something like this  </p>
  
  <pre><code>{array element } = ui-&gt;text_1-&gt;text();
  </code></pre>
  
  <p>and repeat it for text_2,text_3 upto n.</p>
  
  <p>What I want is to run a loop and replace number portion of text box name in each cycle.</p>
  
  <p>something like this   <code>{array element } = ui-&gt;text_{This number getting changed }-&gt;text();</code></p>
  
  <p>How can it be done in qt?</p>