// 清空所有label
QList<QLineEdit *> lblhws = ui.centralWidget->findChildren<QLineEdit *>();
foreach(QLineEdit *lbl, lblhws) {
if (lbl != nullptr) {
lbl->setText("");
lbl->repaint();
lbl->clearFocus();
}
}
02-23
6655
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交