slint::ComponentHandle Class
template <typename T>class ComponentHandle;C++
#include <slint.h>C++
The component handle is like a shared pointer to a component in the generated code. In order to get a component, use T::create() where T is the name of the component in the .slint file. This give you a ComponentHandle<T>
Public Functions
Section titled “Public Functions” ComponentHandle
Section titled “ ComponentHandle”slint::ComponentHandle<T>::ComponentHandle(const vtable::VRc<private_api::ItemTreeVTable, T> &inner)
internal constructor
operator->
Section titled “ operator->”const T * slint::ComponentHandle<T>::operator->() const
Arrow operator that implements pointer semantics.
operator*
Section titled “ operator*”const T & slint::ComponentHandle<T>::operator*() const
Dereference operator that implements pointer semantics.
operator->
Section titled “ operator->”T * slint::ComponentHandle<T>::operator->()
Arrow operator that implements pointer semantics.
operator*
Section titled “ operator*”T & slint::ComponentHandle<T>::operator*()
Dereference operator that implements pointer semantics.
into_dyn
Section titled “ into_dyn”vtable::VRc<private_api::ItemTreeVTable> slint::ComponentHandle<T>::into_dyn() const
internal function that returns the internal handle
© 2026 SixtyFPS GmbH