Thank you for your help, Lesiok.
I am going to try the codes from superdialog.zip
When I tried to implement the code you gave before into a widget.cpp indeed qle_list was constructed as a QList of type QLineEdit, but the elements were undefined and I could not find how to get the lineEdits on a window.
It is strange that I could nowhere find a straightforward solution. Until now I just use a large series of code lines like:
QLineEdit * text[50];
text[1] = ui->lineEdit_1
text[2] = ui->lineEdit_2
......
text[50] =ui->lineEdit_50
I can imagine that it can not be done easier with a nice system as Qt.
But maybe that is why I am still a newbe




Reply With Quote

Bookmarks