• 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.

    void MyClass :: installNewFilter()
    //I don't know what filter was before so I cannot delete...A removeAllFilters method should do


    Later edit: What if I call removeEventFilter(NULL) ?

  • Unfortunately there is no public API to achieve this. You'll have to do the bookkeeping yourself, eg. by using specialized methods that add your filter to a list of filters.

  • Thank you Volker, I have stored all parents into a list and removed them on a new install.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.