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:
void DynamicControls
::createLineEdit(QString Wstr,
QString WTip,
int x,
int y
) {
lineEdit->setToolTip(WTip);
layout->addWidget(lineEdit,x,y);
}
void DynamicControls::createLineEdit(QString Wstr,QString WTip,int x,int y)
{
lineEdit=new QLineEdit(Wstr);
lineEdit->setToolTip(WTip);
layout->addWidget(lineEdit,x,y);
}
To copy to clipboard, switch view to plain text mode
and what will be the function call frm main?
exist code
w.createLineEdit(str,str,1,1);
w.createLineEdit(str,str,1,1);
To copy to clipboard, switch view to plain text mode
Thanks
Bala
Bookmarks