inherits, Type Identification and qobject_cast