Solved how to make serach Qlinedit connected with QlistVeiw?
-
how to make a search from QlistVeiw?
-
Hi,
You don't search through the view, you do that on the model. See the match function.
-
@SGaist can you send me an example
-
QModelIndexList matchList = model->match(model->index(0,0), Qt::DisplayRole, lineEdit->text());
Change the hits and flags according to your search criteria, see the documentation for the possible values.