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

Remove weird scaling/distortion effects when resizing a Qt Quick Window

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.0.0 Beta2
    • Quick: Other
    • None
    • Windows

    Description

      In Qt 6.0 beta (and earlier, when using the Direct 3D graphics backend), when resizing a Qt Quick Window faster than the renderer can update the window, the content is distorted and scaling up or down, giving a buggy user experience. Instead, the old area which was painted before the resize event should be aligned to the top left and the excess space should be filled with a neutral background until the resized window is rendered, like many other applications including MS Office and Chrome do. 

      The attached video qtbug.mp4 demonstrates the bug by example of the "Qt Quick Controls Gallery" example project (Release build).

      The attached video vlc.mp4 shows VLC player smoothly resized. This behavior would be the optimum, but for complex and computationally expensive GUIs this might not always be possible.

      The attached video chrome.mp4 (slowed down so you can see the black portions) shows Google Chrome being resized. Although not as smooth as VLC player, it fills the excess space which is not yet rendered with black rather than weirdly shaking and resizing the content. This would be also fully acceptable. Notice that the UI parts on the top left (back/forward buttons) do not move one single pixel while the window is resized. This is what we need for QML windows to create a smooth user experience.

      The videos were recorded on Windows 10 with a high-end GPU (Vega 64). The renderer is Direct 3D 11.

      Attachments

        1. qtbug.mp4
          654 kB
        2. vlc.mp4
          315 kB
        3. chrome.mp4
          1.38 MB

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              syncu syncu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes