We can use qobject_cast or static_cast + type id check instead. It allows us Kate to be compiled without rtti