Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.8.0 Alpha
-
None
-
13
-
58902fbd684d39191fbddf3ef5e917e709b38a68 (qt/qttools/dev)
-
Da Vinci sprint 10
Description
Consider such QML property group, where only index is a writable property, and the others are read-only:
/*!
\qmlpropertygroup Type::filter
\qmlproperty int Type::filter.index
\qmlproperty string Type::filter.name
\qmlproperty list<string> Type::filter.extensions
...
*/
Adding \readonly anywhere within the property group makes all properties read-only. Would it be possible to have a way to associate \readonly with a specific property? For example, by putting them on the same line:
/*!
\qmlpropertygroup Type::filter
\qmlproperty int Type::filter.index
\readonly \qmlproperty string Type::filter.name
\readonly \qmlproperty list<string> Type::filter.extensions
...
*/