Closed vandenoever closed 6 years ago
The C++ implementation example has calls the notify
function in the write
function:
void setPriority(Priority priority)
{
m_priority = priority;
emit priorityChanged(priority);
}
In the documentation for NOTIFY
it says: "The NOTIFY signal should only be emitted when the property has really been changed, to avoid bindings being unnecessarily re-evaluated in QML, for example. ". So what's also missing is a check to see if the value actually changed.
Is there something needed to get this merged?
@vandenoever from your comment:
In the documentation for NOTIFY it says: "The NOTIFY signal should only be emitted when the property has really been changed, to avoid bindings being unnecessarily re-evaluated in QML, for example. ". So what's also missing is a check to see if the value actually changed.
The code now checks if the value was changed.
I would love to see this merged! I just got started porting some qml stuff I have from Go. I was confused for a long time why my property changes didn't work, and how I should communicate with my components if this wasn't possible. With this branch, this aspect of my code works great!
Still hope this gets merged at some point.
What's up with this PR @White-Oak ?
It seems like this was missing.