qt6.qml_context

This class represents a handle to an instance of QQmlContext.

Properties

properties: qml_context.property

The handle to the qml_context’s properties.

props: qml_context.property

An alias for properties. It may be more familiar to React developers and faster to type as well.

Both names are good choices. Use whichever you like the most.

object: object

The context’s backing object.

engine: object

The context’s backing QML/JS engine.

property: qml_context.property

Deprecated. Use properties or props instead.

The handle to the qml_context’s properties.