qobject_cast is used as in https://doc.qt.io/qt-5/qobject.html#qobject_cast:
The `qobject_cast()` function behaves similarly to the standard C++ `dynamic_cast()`, with the advantages that it doesn't require RTTI support and it works across dynamic library boundaries.
static_cast is used as in https://doc.qt.io/qt-5/qobject.html and https://doc.qt.io/qt-5/eventsandfilters.html.