void set_visible_func(callback);

Sets the visible function used when filtering the model. The function should return true if the given row should be visible and false otherwise.

If the condition calculated by the function changes over time (e.g. because it depends on some global parameters), you must call refilter() to keep the visibility information of the model up to date.

Once set, the function cannot be changed or disabled.