Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
4.7.1
-
all, Qt 4.7
Description
When I change value of property of list type the related signal handler is called as many times, as many elements the list include (which IMHO is not right - I would rather expect it to be called once, cause I'm changing the property value only once).
main.qt
{{
import Qt 4.7
Rectangle {
width: 200; height: 200
TestItem {
items: [
QtObject {},
QtObject {},
QtObject {}
]
}
}
}}
TestItem.qml
{{
import Qt 4.7
Item
{ id: testitem property list<QtObject> items onItemsChanged: console.log("Items changed: ", testitem.items.length) } }}qmlviewer output
{{
$ qmlviewer main.qml
Items changed: 1
Items changed: 2
Items changed: 3
}}
Attachments
Issue Links
- is replaced by
-
QTBUG-16316 Assignment to list property yields unexpected result
- Closed