Q_PROPERTYs in preferences code
bstoeger at mail.tuwien.ac.at
Sun Dec 17 04:47:21 PST 2017
On Samstag, 16. Dezember 2017 20:35:29 CET Lubomir I. Ivanov wrote:
> On 16 December 2017 at 14:26, Berthold Stoeger
> <bstoeger at mail.tuwien.ac.at> wrote:
> > Somehow this all seems redundant: Each property has a WRITE method and a
> > NOTIFY signal, but the signal is raised in the WRITE method anyway..? Does
> > this mean that the signals are raised twice on mobile?
> "For maximum interoperability with QML, any property that is writable
> should have an associated NOTIFY signal that is emitted whenever the
> property value has changed"
> you can then use the "on<my-var>Changed" slot naming scheme, which is
> automatically handled in QML.
> also i think i got QML errors at one point where my properties didn't
> have the NOTIFY signals.
Thanks, good to know. I still don't have a clear picture of QML, so I won't
touch this for now.
More information about the subsurface