Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Shivering window behaviour on resize when using ApplicationWindow with 2 elements

    QML and Qt Quick
    1
    1
    386
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      werolik 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: 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.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post