A KTextEditor implementation may implement a View extension interface, but it does not need to. So as a KTextEditor user you have to cast the View to the desired interface and then check, whether the cast returns NULL or the valid interface.
Use qobject_cast to cast a View view into the DesiredExtensionInterface, example:
- See also
The following classes are a list of all available View extension interfaces.