create an object from it, a method of it will call immediately after its constructor (if you wonder what's this class: QAbstractNativeEventFilter in qt and its method is: nativeEventFilter() ).
My question is how can I delay the call of this method?
When you create QAbstractNativeEventFilter the constructor usually doesn't call anything. You're supposed to inherit from from to implement your own nativeEventFilter.
It's obvious. Yes. But if you inherit from it and create an object from it, that method will call immediately.
It should be called on event after you install it on app object, not on construction.
When you install it on app object you should pass an instance of it.
Обсуждают сегодня