标签:string text lin line 控件 children edit ber 获取
这里父控件是QGroupBox,子控件是QLineEdit
QList<QLineEdit*> list = ui.groupBox_11->findChildren<QLineEdit*>(); for (int i = 0; i < list.size(); i++) { QLineEdit* le = list.at(i); le->setText(QString::number(i)); }
标签:string text lin line 控件 children edit ber 获取
原文地址:https://www.cnblogs.com/judes/p/9480507.html