ContainerItem QML Type

A container type demonstrating combined property hints. More...

Import Statement: import TestModule

Properties

Detailed Description

ContainerItem demonstrates that QML properties can have multiple hints applied simultaneously.

Property Documentation

children : list<Item> [default read-only]

The children of this container, which is both the default and read-only.

This property is the default property (child items are implicitly added here) and is also read-only (cannot be directly assigned to, only modified via methods like push/pop or by declaring children).

content : Item [default required]

Required default content item.

This property demonstrates a default property that is also required.

count : int [read-only required]

A read-only required property.

This property demonstrates that a property can be both read-only and required, meaning it must be set during construction but cannot be changed afterward.

name : string [read-only]

A simple read-only property.

This property is only read-only for comparison.

title : string [required]

A simple required property.

This property is only required for comparison.