qApp, Type Identification and qobject_cast