Hi All
I have another question here , first i try to explain what i try to do, On my form there are 5 pushbuttons and i want to load them.I prepare a for loop but i dont know how can i load
these files.My photos names are like this "deneme(0).bmp", "deneme(1).bmp",deneme(3).bmp".... etc

How can i do this?

Qt Code:
  1. for(i=0;i<5;i++)
  2. icon[i].addFile("deneme(i).bmp",i);
  3. size=QSize(130,93);
  4. a[0]=ui.pushButton;
  5. a[1]=ui.pushButton_2;
  6. a[2]=ui.pushButton_3;
  7. a[3]=ui.pushButton_4;
  8. a[4]=ui.pushButton_5;
  9. for(i=0;i<5;i++)
  10. {
  11. a[i]->setIcon(icon[i]);
  12. a[i]->setIconSize(size);
  13. }
To copy to clipboard, switch view to plain text mode