What does @Slot() do? — Is the Slot decorator even necessary?
In Qt, this is provided by signals and slots or events.
Signals & Slots | Qt Core | Qt 6.9.0
QML - Tutorial 036. Working with Signals and Slots in QML. This article is the most comprehensive description of signals and slots in QML compared to all previous articles on this site.
wisoltech/qt-signal-slot: Connect QML to C++ ...
As we’ve already seen in the previous examples, properties, signals and slots offer different types of communication between C++ and QML ...
