QtQml: Serialize bindings in the order they are defined


We used to sort the bindings of each object by the order in which the
object creator has to apply them: value bindings, signal handlers,
attached properties, grouped properties, and finally value bindings to
aliases. This depends on the resolved types, which we shouldn't bake
into the compilation unit.

Store the bindings in the order they appear in the document instead, and
calculate the order of application at load time, as part of the runtime
data. The object creator then has to collect explicit bindings to the
default property rather than relying on them being contiguous.

Task-number: QTBUG-147816
Change-Id: I95cc6115e09a16637a3152d48ed515dde07d5f8a
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
commit5a6fa268e7a581b7e036c226f570dc91dbfb3140
parentde0e69d9983dc4aadf01041e116d081b2812d76f
authorUlf Hermann <ulf.hermann@qt.io>
committerUlf Hermann <ulf.hermann@qt.io>
commit timeTue, 20 Oct 2026 21:46:02 +0000