wagmare
11th August 2009, 11:46
hi friends,
i got a problem in QList
as i subject all my object in a Widget class to a QList by
QList wlist;
wlist = widget->findChildren<QWidget *>();
this list have QLabel, QTextEdit, etc ..
but all were typecast to QWidget in the QList ..
now i want to access a label in wlist.at(2) .. which currently returning a QWidget pointer ..
please help ..
i got a problem in QList
as i subject all my object in a Widget class to a QList by
QList wlist;
wlist = widget->findChildren<QWidget *>();
this list have QLabel, QTextEdit, etc ..
but all were typecast to QWidget in the QList ..
now i want to access a label in wlist.at(2) .. which currently returning a QWidget pointer ..
please help ..