This is a list of base classes that have as<T> and potentially from<T> methods.
These are used to either upcast to a class object type of a secondary parent class or downcast to a base class object from the same secondary parent class.
These are required when passing a base or inherited class object to a function that expects a secondary parent class or when a function returns a secondary parent class object and downcasting is desired.
All types inheriting from these base classes also inherit the casting methods where possible.
| Class | Direct Inheritance | Secondary Inheritance(s) |
|---|---|---|
Attica::PlatformDependentV3 | QObject | Attica::PlatformDependentV2 |
KBookmarkAction | QAction | KBookmarkActionInterface |
KBookmarkActionMenu | KActionMenu | KBookmarkActionInterface |
KComboBox | QComboBox | KCompletionBase |
KIO::ForwardingWorkerBase | QObject | KIO::WorkerBase |
KIO::JobUiDelegate | KDialogJobUiDelegate | KIO::JobUiDelegateExtension |
KLineEdit | QLineEdit | KCompletionBase |
KModifierKeyInfoProvider | QObject | QSharedData |
KParts::MainWindow | KXmlGuiWindow | KParts::PartBase |
KParts::Part | QObject | KParts::PartBase |
KSharedConfig | KConfig | QSharedData |
KSyntaxHighlighting::SyntaxHighlighter | QSyntaxHighlighter | KSyntaxHighlighting::AbstractHighlighter |
KTextEditor::Attribute | QTextCharFormat | QSharedData |
KTextEditor::View | QWidget | KXMLGUIClient |
KXmlGuiWindow | KMainWindow | KXMLGUIBuilder, KXMLGUIClient |
QAccessibleWidget | QAccessibleObject | QAccessibleActionInterface |
QCPErrorBars | QCPAbstractPlottable | QCPPlottableInterface1D |
QDBusPendingCallWatcher | QObject | QDBusPendingCall |
QExtensionFactory | QObject | QAbstractExtensionFactory |
QExtensionManager | QObject | QAbstractExtensionManager |
QGraphicsObject | QObject | QGraphicsItem |
QGraphicsWidget | QGraphicsObject | QGraphicsLayoutItem |
QIODevice | QObject | QIODeviceBase |
QLayout | QObject | QLayoutItem |
QOffscreenSurface | QObject | QSurface |
QPaintDeviceWindow | QWindow | QPaintDevice |
QPdfWriter | QObject | QPagedPaintDevice |
QTermWidget | QWidget | QTermWidgetInterface |
QWidget | QObject | QPaintDevice |
QWindow | QObject | QSurface |
TextCustomEditor::PlainTextSyntaxSpellCheckingHighlighter | Sonnet::Highlighter | KSyntaxHighlighting::AbstractHighlighter |