QtQml: Classify signal handlers at load time


Whether a binding is a signal handler, a property observer, or a plain
binding depends on the resolved types. Classify signal handlers when
loading the compilation unit, as part of the runtime data, and read the
classification from there.

The load time classification needs the type loader and the imports in
order to resolve attached types. It reports the same errors as the
signal handler resolver did. Remove the signal handler resolver as well
as the respective flags and classification methods on bindings.

Binding::isAttachedProperty() and Binding::isGroupedProperty() only look
at the type now. The IR builder checks for duplicate value bindings
before any signal handlers are classified. It can also just look at the
type.

QQuickPropertyChanges has no easy access to the runtime data. It
recognizes signal handlers by their names.

The component resolver doesn't check for signal handlers anymore when
looking for implicit components. When compiling from source, it never
saw the flag anyway since it runs before the signal handler resolver.
Object bindings to actual signal handlers are not wrapped since there is
no property of that name. If there is such a property, the implicit
component takes precedence, as it always did when compiling from
source. A binding named like a signal handler may well be a plain
property assignment, so the resolver must not go by the name.

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