[Development] Why don't we have notify signal for all of the properties?
tr3w at freemail.hu
Fri Jul 6 14:26:19 CEST 2012
On Fri, Jul 6, 2012 at 1:56 PM, André Somers <andre at familiesomers.nl> wrote:
> Op 6-7-2012 13:30, Olivier Goffart schreef:
>> On Friday 06 July 2012 13:02:16 André Somers wrote:
>> As already pointed out, adding NOTIFY signal is not binary incompatible. Feel
>> free to submit patches that add them :-)
Ok, I may misremember something.
Currently I'm experimenting with property binding in C++. I created a
simple class which can update the destination property based on an
arbitrary expression if any of the "source" properties change.
For example I wanted to create two independent QWidget, and I wanted
to bind the weight of the first to the weight of the second.
So something like we do a lot with QML elements.
But the QWidget's weight property doesn't have a corresponding
weightChanged() signal (nor sizeChanged() or something higher level).
Actually it doesn't have any NOTIFY signal at all.
But if we can add more notify signal any time for existing properties
then it's ok, I don't have more questions.
More information about the Development