title: making single function for array of pushbuttons in QT
body: <p>I'm new in QT. I have 35 push_buttons in an array. I want to write single function for this array of buttons. that function will only set string, different for each button. like "10,10" nextone like "15,15" etc.
  I have seen signalmappers which i can able to understand.</p>
  
  <p>give simple and easy idea.</p>
  
  <pre><code>for (int i = 0; i &lt; 35;i++){
      PB &lt;&lt; new QPushButton();
  }
  
  ui-&gt;setupUi(this);
  
  PB[0]=ui-&gt;pB_00;PB[1]=ui-&gt;pB_01;PB[2]=ui-&gt;pB_02;PB[3]=ui-&gt;pB_03;
  PB[4]=ui-&gt;pB_04;PB[5]=ui-&gt;pB_05;PB[6]=ui-&gt;pB_06;PB[7]=ui-&gt;pB_07;
  PB[8]=ui-&gt;pB_08;PB[9]=ui-&gt;pB_09;PB[10]=ui-&gt;pB_10;PB[11]=ui-&gt;pB_11;
  PB[12]=ui-&gt;pB_12;PB[13]=ui-&gt;pB_13;PB[14]=ui-&gt;pB_14;PB[15]=ui-&gt;pB_15;
  PB[16]=ui-&gt;pB_16;PB[17]=ui-&gt;pB_17;PB[18]=ui-&gt;pB_18;PB[19]=ui-&gt;pB_19;
  PB[20]=ui-&gt;pB_20;PB[21]=ui-&gt;pB_21;PB[22]=ui-&gt;pB_22;PB[23]=ui-&gt;pB_23;
  PB[24]=ui-&gt;pB_24;PB[25]=ui-&gt;pB_25;PB[26]=ui-&gt;pB_26;PB[27]=ui-&gt;pB_27;
  PB[28]=ui-&gt;pB_28;PB[29]=ui-&gt;pB_29;PB[30]=ui-&gt;pB_30;PB[31]=ui-&gt;pB_31;
  PB[32]=ui-&gt;pB_32;PB[33]=ui-&gt;pB_33;PB[34]=ui-&gt;pB_34;
  </code></pre>