Setting a QObject property is not working as expected. If we execute the following commands:
And then try to print value of "a", we get as "". Result expected here is false.
I checked the underlying code and observed that logic compares the old value to new value and updates only in these are different. but in this case, code treats "" as false, and don't update property value. May be QVariant::operator== needs to modified.
As a workaround, we can set property as invalid before setting it to false.
Attaching the sample project also.