in your DynamicControls class make function that will return the linedit pointer... then you can use w.getlinedit1->text()
how to return a pointer?

existing coding:
Qt Code:
  1. void DynamicControls::createLineEdit(QString Wstr,QString WTip,int x,int y)
  2. {
  3. lineEdit=new QLineEdit(Wstr);
  4. lineEdit->setToolTip(WTip);
  5. layout->addWidget(lineEdit,x,y);
  6. }
To copy to clipboard, switch view to plain text mode 

and what will be the function call frm main?
exist code
Qt Code:
  1. w.createLineEdit(str,str,1,1);
To copy to clipboard, switch view to plain text mode 


Thanks
Bala