im using the following steps to create LINE EDITS
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
from main im creating LINEEDITS BY FOLLOWING CODE
main()
{
w.createLineEdit("id","id",1,1);
w.createLineEdit("name","name",2,2);
//here i want to access id.text, name.text
}
main()
{
w.createLineEdit("id","id",1,1);
w.createLineEdit("name","name",2,2);
//here i want to access id.text, name.text
}
To copy to clipboard, switch view to plain text mode
how can i access in main?
id's value and name value?
pls guide me
Bala
Bookmarks