On 3/24/25 10:58, Ulf Hermann via Development wrote:
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
What's the benefit of not generating it on the C++ level? I mean, I
understand you _can_ do that, but I don't quite see why you would prefer
to introduce an inconsistency like that?
Cheers,
André
--
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development