Shivering window behaviour on resize when using ApplicationWindow with 2 elements
-
wrote on 14 Nov 2014, 13:37 last edited by
Hello,
We use ApplicationWindow in our project and lately got really strange behaviour on resizing. After some investigation I've found out that it's easyly reproducible on very simple example:
@ApplicationWindow {
id: application
minimumWidth: 800
minimumHeight: 600Rectangle {
anchors.fill: parent
onWidthChanged: console.log("rect1 width" + width)
}Rectangle {
anchors.fill: parent
onWidthChanged: console.log("rect2 width" + width)
}
}@If you resize the window really fast it begans shivering and hangs. Looks like the window cannot decide what width to choose.
Removing onWidthChanged handlers fixes the problem.
Also it is fixed by making one rectangle parent of the other one.I'm interested what causes the problem in this case - do we missuse ApplicationWindow in some way or is it a bug in the framework or something else.
1/1