Hi it's me again

How can I filter a QSqlTableModel so that only rows show up that have a certain cell contain a substring, like the sql LIKE clause?
The setFilter() member filters only on the whole string.

I tried a query like:

Qt Code:
  1. QString str = QString("SELECT * FROM pix WHERE 'name' LIKE '%%1%'").arg(nameEdit->text());
  2. QSqlQuery query(str);
  3. model->select();
To copy to clipboard, switch view to plain text mode 

But this seems not the way to go.

Thanks.