Use public methods as slots, instead of anonymous functions