[Development] The future of QProperty and QBindable
Ulf Hermann
ulf.hermann at qt.io
Mon Mar 24 10:58:41 CET 2025
> Whatever you change, please consider the upgrade path for people using BINDABLE in many, many places.
> E.g. if a new solution can be applied by regexp search & replace, or if Qt Creator offered an "upgrade fix" via light bulb, that would be great.
We need to establish some "NOTIFY default" as part of Q_PROPERTYY that
would produce a signal only on the metaobject level, but not as C++
declaration. Then you could search-replace all your BINDABLEs and add
"READ default WRITE default NOTIFY default" to all of them. This, in
turn would enable QML to use the property without the bindable.
I'll keep this in mind.
best,
Ulf
More information about the Development
mailing list