baluk
29th October 2010, 07:31
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.
QObject buttons[10];
buttons[1] = (QObject) ui->pushbutton1;
I have written this code because I remembered of doing something like this in other languages (.NET, Java). Thanks in advance.
Baluk
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.
QObject buttons[10];
buttons[1] = (QObject) ui->pushbutton1;
I have written this code because I remembered of doing something like this in other languages (.NET, Java). Thanks in advance.
Baluk