
Originally Posted by
nish
rather than playing with the layout i suggest you to keep track of your lineEdits in a QList or a QStack. As soon as you add a new lineEdit, insert the pointer into the list and then you can access the lineEdits anywhere.
i tried to do like this.....
QList<QWidget *> lineEditList;
lineEditList.append(lineEdit);
//doing remaining operation....
QList<QWidget *> lineEditList;
QLineEdit *lineEdit = new QLineEdit;
lineEditList.append(lineEdit);
//doing remaining operation....
To copy to clipboard, switch view to plain text mode
wnd while accessing list ...
QString temp
=lineEditList.
at(i
)->text
();
QString temp=lineEditList.at(i)->text();
To copy to clipboard, switch view to plain text mode
but this does not works....i'm getting error..
Bookmarks