Hi, i am using a QSqlRelationalTableModel like this:

Qt Code:
  1. modelo->setTable("producto");
  2. modelo->setRelation(1, QSqlRelation("rubro", "idrubro", "nombre"));
  3. modelo->select();
To copy to clipboard, switch view to plain text mode 

now after this i want to set a filter but with the related column, in this case the column rubro.nombre from the table rubro. How can i do this? Is this possible? Ive tryed several ways but is not working at all, i ve tried "rubro = sometext" "idrubro = idrubro" and a few more. Can anybody help me?

Thanks.