It's better to use an iterator like the following
QList<QLineEdit*> lineEdits;
for(QList<QLineEdit*>::iterator iter = lineEdits.begin(); iter != lineEdits.end(); ++iter) {
(*iter)->setText("Some Text");
// In Qt i think you can also use the following
// iter->setText("Some Text");
}
QList<QLineEdit*> lineEdits;
for(QList<QLineEdit*>::iterator iter = lineEdits.begin(); iter != lineEdits.end(); ++iter) {
(*iter)->setText("Some Text");
// In Qt i think you can also use the following
// iter->setText("Some Text");
}
To copy to clipboard, switch view to plain text mode
or an foreach loop:
le->setText("Some Text");
}
foreach(QLineEdit* le, lineEdits) {
le->setText("Some Text");
}
To copy to clipboard, switch view to plain text mode
Best Regards
NoRulez
Bookmarks