...
ui.leSSSN->setText(persRec.value(9).toString());
ui.lePart->setText(persRec.value(10).toString());
ui.
leTotalIncome->setText
(QString::number(persRec.
value(11).
toDouble(),
'f',
2));
ui.
leP2Line1->setText
(QString::number(persRec.
value(12).
toDouble(),
'f',
2));
ui.
leP2Line2->setText
(QString::number(persRec.
value(13).
toDouble(),
'f',
2));
ui.
leP2Line3->setText
(QString::number(persRec.
value(14).
toDouble(),
'f',
2));
ui.
leP2Line4->setText
(QString::number(persRec.
value(15).
toDouble(),
'f',
2));
ui.
leP2Line5->setText
(QString::number(persRec.
value(16).
toDouble(),
'f',
2));
ui.
leP2Line6->setText
(QString::number(persRec.
value(17).
toDouble(),
'f',
2));
ui.
leP2Line7a->setText
(QString::number(persRec.
value(18).
toDouble(),
'f',
2));
...
...
ui.leSSSN->setText(persRec.value(9).toString());
ui.lePart->setText(persRec.value(10).toString());
ui.leTotalIncome->setText(QString::number(persRec.value(11).toDouble(),'f',2));
ui.leP2Line1->setText(QString::number(persRec.value(12).toDouble(),'f',2));
ui.leP2Line2->setText(QString::number(persRec.value(13).toDouble(),'f',2));
ui.leP2Line3->setText(QString::number(persRec.value(14).toDouble(),'f',2));
ui.leP2Line4->setText(QString::number(persRec.value(15).toDouble(),'f',2));
ui.leP2Line5->setText(QString::number(persRec.value(16).toDouble(),'f',2));
ui.leP2Line6->setText(QString::number(persRec.value(17).toDouble(),'f',2));
ui.leP2Line7a->setText(QString::number(persRec.value(18).toDouble(),'f',2));
...
To copy to clipboard, switch view to plain text mode
We're talking a tax form with several subforms so you have an idea of how many QLineEdit widgets there are on that form, each with it's own identifying name. Global S&R games aren't practical here.
Bookmarks