RemoveEventFilter
General and Desktop
3
Posts
2
Posters
3.1k
Views
1
Watching
-
Hello,
I have a function where I change the EventFilter from an object to another. The problem is that I only know the new object and I cannot remove the event filter installed before. Take the below example.
[code]
void MyClass :: installNewFilter()
{
//I don't know what filter was before so I cannot delete...A removeAllFilters method should domyControl->installEventFilter(this);
}
[/code]Later edit: What if I call removeEventFilter(NULL) ?