Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-92384

QtQuick window fails to display content correctly when window is being resized making it totally unusable



    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.0.2
    • Fix Version/s: None
    • Component/s: Quick: Other
    • Labels:
    • Environment:
      Windows 10
    • Platform/s:


      I used the most simple code which I could come up with.

      import QtQuick 2.4
      Rectangle {
          width: 320; height: 320
          Rectangle {
              width: 120; height: 120
              anchors.top: parent.top; anchors.left: parent.left; anchors.margins: 10
              color: "red"

      When I run the application, it is displayed correctly. But when I resize the window, I can observe many problems:
      1) The alignment margins around the red square are not preserved.
      2) After resizing, the square is not a square anymore, its width is obviously different than it height.
      3) When the window is being resized, the square constantly resizes too despite the fact that it should remain constant size (which shows extremely ugly "jumping" effect during resizing).
      4) The areas near the right and bottom rim of the window are not overpainted correctly - sometimes they remain black, sometimes a fragment of mouse cursor remains visible (not captured by GIF recorder, but is visible on screen), sometimes it breaks rendering of the red square.

      See them live in the attached GIF.

      Note that some bad visual effects were however not captured by the GIF recorder for some reason - e.g. the remaining fragments of mouse cursor in lower right corner after resizing or the broken red square when the window was shrinked near the size of the red square. This means that the reality looks much worse than the GIF! You need to try it yourself.

      It is my opinion that these bugs make QML/QtQuick unusable on desktop. It is unusable only on mobile or embeded where the window size is fixed (i.e. the whole screen).


        No reviews matched the request. Check your Options in the drop-down menu of this sections header.



            qt.team.quick.subscriptions Qt Quick and Widgets Team
            vladimir.kraus Vladimir Kraus
            0 Vote for this issue
            3 Start watching this issue



                Gerrit Reviews

                There are no open Gerrit changes