Hello!
As I wrote yesterday in another post, I have to read QStrings from many QLineEdits.
The answer was that this is best accomplished through a class using a QList of QLineEdits. But I have to set the names of all lineedits somehow.
Is it possible to access the variables through their QString'ed name?
Is something like that possible:
...
QString lineedit1, lineedit2, lineedit3
lineedits << "lineedit1" << "lineedit2" << "lineedit3".....
while (lineedits.hasNext)
{
PseudoCode: lineedits[INDEX] = SameNamedQLineEdit_[INDEX].text();
}
QLineEdit lineedit_1
QLineEdit lineedit_2
QLineEdit lineedit_3
...
QString lineedit1, lineedit2, lineedit3
QStringList lineedits
lineedits << "lineedit1" << "lineedit2" << "lineedit3".....
while (lineedits.hasNext)
{
PseudoCode: lineedits[INDEX] = SameNamedQLineEdit_[INDEX].text();
}
To copy to clipboard, switch view to plain text mode
Well somehow my feeling points to "not possible, find another solution"
Kind regards,
HomeR
Bookmarks