Shivering window behaviour on resize when using ApplicationWindow with 2 elements



  • 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: 600

    Rectangle {
    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.