Re: [Interest] getting type information of properties in QML

2024-08-05 Thread Ulf Hermann via Interest
1) value types are always copied Sort of. Most value types still look like JavaScript objects which are passed by reference. Internally, the reference nature is simulated by copying the data into a local and two-way-synchronizing with the original. This becomes expensive if either side change

[Interest] getting type information of properties in QML

2024-07-16 Thread Federico Ferri
Is there any way to get type information about types of properties defined in a QML Component? e.g. Item { property color c property vector3d v property int i Component.onCompleted: { getPropertyType(c) === 'color' getPropertyType(v) === 'vector3d' getProp