Hi i am trying to use the findChlid(), and i was getting error after running it that is
The program has unexpectedly finished

Here is my Code:
The Header File
Qt Code:
  1. class menuprocess : public QWidget
  2. {
  3. Q_OBJECT
  4. public:
  5. menuprocess();
  6. ~menuprocess();
  7. private:
  8. QLabel *io_one;
  9. private slots:
  10. int tester();
  11. };
To copy to clipboard, switch view to plain text mode 
The CPP File
Qt Code:
  1. menuprocess::menuprocess()
  2. {
  3. io_one = new QLabel(this);
  4. testButton = new QPushButton(this);
  5. testButton->setText("Test");
  6. testButton->setGeometry(250,130,40,30);
  7. }
  8.  
  9. int menuprocess::tester()
  10. {
  11. ios << "RFID" << "MagSwipe" << "RTC" << "IFD" <<"PM";
  12. obs << "io_one" << "io_two" << "io_three" << "io_four";
  13. QLabel *label = parentWidget()->findChild<QLabel *>(obs.at(j));[B]I have used both the Lines this one and the next one by commenting one among this[/B]
  14. QLabel *label = this->findChild<QLabel *>(obs.at(j));
  15. qDebug()<<"The OBJECT NAME is"<<label->objectName();//at this line i am getting error[B]The program has unexpectedly finished[/B]
  16. label->setText(ios.at(i));[B]//And here too the same error if i comment the QDebug Line[/B]
  17. }
To copy to clipboard, switch view to plain text mode 

Is it possible todo so in this manner if yes

Please do need ful

Thanks in advance

Regards,
Rohith.G