@Axel-Spoerl no, not at all. Maybe some code will help. I have a struct:
struct Equipment
{
Q_GADGET
QML_STRUCTURED_VALUE
QML_VALUE_TYPE(equipment)
...
and I maintain a list of these in a model.
In my QML, I have a ListView that accesses the model, and furnishes the contents to a delegate that eventually gets down to:
equipmentModel.processSpaceAssignment(vspInModel, spaceUuid, checked)
where vspInModel is an instance of a subclass of Equipment. There's some rather complex work that needs to be done, so I didn't want to try to implement it in JS. The C++ function signature is:
bool EquipmentModel::processSpaceAssignment(Equipment equipment, QUuid spaceUuid, bool add)
So, my original question was, is this equipment/vsp object passed by value in this case?