Hi,

I have few buttons added to my UI file. Now I want to read those buttons into an array. is it possible to do this. I tried something, but getting errors.

Qt Code:
  1. QObject buttons[10];
  2. buttons[1] = (QObject) ui->pushbutton1;
To copy to clipboard, switch view to plain text mode 

I have written this code because I remembered of doing something like this in other languages (.NET, Java). Thanks in advance.

Baluk