Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
ODUHO4KA last edited by ODUHO4KA
Can you explain me difference between attached properties and usual properties, please? How I understood, the attached properties are necessary for use in delegates.
Thank you in advance!
From the documentation:
Attached properties and attached signal handlers are mechanisms that enable objects to be annotated with extra properties or signal handlers that are otherwise unavailable to the object. In particular, they allow objects to access properties or signals that are specifically relevant to the individual object.
These are extra properties provided by specific objects to specific instances of other objects. In the example, the instance of a delegate can access the ListView.isCurrentItem property.
magrif last edited by
Creating attached properties possible only in .cpp?