Details
-
Suggestion
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
None
Description
Currently, users can implement custom attached properties in C++ (https://doc.qt.io/qt-6/qtqml-cppintegration-definetypes.html#providing-attached-properties ) It would be handy if it were possible to implement them in QML too (even if the QML-defined ones aren't as flexible as the C++-defined ones)
Use-case
This would allow user-defined attached properties to be used in Qt Design Studio projects. Currently, Qt DS cannot preview anything that relies on custom attached properties because Qt DS doesn't run AOT-compiled code.
Attachments
Issue Links
- duplicates
-
QTBUG-15554 Allow defining attached properties from within QML
- Open