qt QTableWidget函数之findItems

QList<QTableWidgetItem *> QTableWidget::findItems(const QString &text, Qt::MatchFlags flags)
// 查询item项中有没有匹配的
例: bool isEmpty = ui->usrTablWidget->findItems(username,Qt::MatchExactly).isEmpty();

posted on 2021-05-20 22:09  lodger47  阅读(2036)  评论(0)    收藏  举报

导航