Camera component has projectionMatrix and projectionType. These two are linked so that setting a type to something changes projectionMatrix and setting projectionMatrix sets projectionType to CustomProjection.
When both properties are bound in QML, the one bound later (ie. the order of these properties in a QML file) determines which one gets used initially. For example, both of these result in a different outcome (when myProjectionType != CustomProjection):
Why both of these would be bound at the same time could be because user is presented with an ability to change projection at runtime.
However, this link between these properties should be documented. This nice comment can be found in qcameralens.cpp, but it is not found in documentation:
This alone would already give an idea that these properties are linked.
|For Gerrit Dashboard: QTBUG-64386|
|227490,3||Doc: Add note about projectionMatrix effect on projectionType in QML||5.11||qt/qt3d||Status: MERGED||+2||0|
|227680,2||Doc: Add note about projectionMatrix effect on projectionType in QML||5.9||qt/qt3d||Status: MERGED||+2||0|