[Development] Property bindings in Qt 6

d3fault d3faultdotxbe at gmail.com
Thu Sep 26 18:42:12 CEST 2019

On 9/26/19, Julien Cugnière <julien.cugniere at gmail.com> wrote:
> As a user, I find this project very interesting, as after learning
> QML, I often found myself wanting to use some kind of binding system
> when coding in C++.
> One question that comes to mind when you mention lazy evaluation: how
> does this interact with the "onPropertyChanged" signal? In QML, one
> sometimes sees code like :
>     onFullnameChanged: {
>         console.log("the fullname changed!");
>         foo.bar();
>     }
> At first glance, this doesn't seem compatible with lazy evaluation.

I had a similar question: how do we use this lazy evaluation with e.g.
QLabel::setText? I skimmed the sourced but didn't see any "dirtied"
signal to connect to.

Otherwise though this looks promising and a much cleaner approach than
depending on javascript.


More information about the Development mailing list