'Filter' is not the member of Qw:: interface
There is a difference between
with an upper case
with a lower case
missing type specifier - int assumed.
You have not declared the return type on the two methods
Beyond that it is difficult to suggest anything with so little information provided.