Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.0
-
None
-
b8cca95c0395369cdfb17c198aff085badcddd94
Description
Steps to reproduce:
1. Launch the code below
2. Click in the window once, note that both properties are being updated
3. Click in the window again. Now onVariantPropChanged will be called again, even though the value hasn't changed. The int property, on the other hand, doesn't have this behavior
import Qt 4.7 Rectangle { width: 200 height: 200 property variant variantProp: 0 property int intProp: 0 MouseArea { anchors.fill: parent onClicked: { variantProp = 1; intProp = 1; } } onVariantPropChanged: { console.log("Variant property changed") } onIntPropChanged: { console.log("Int property changed") } }