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

Resizing main window leads to painting jitter and even bugs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.3, 6.8.1
    • Quick: 2D Renderer
    • None
    • Windows 10, AMD Ryzen 5 + NVIDIA GeForce RTX laptop
    • Windows

    Description

      I've created a simple repro application. Just launch it and try to resize its main window. When you've finished resizing it - it paints main window with bugs until you move it. Another issue is that there is a jitter when you resizing the window.
      I've attached video demonstrating the issues.

      Workaround: add width/height change handlers for the main window and change window's opacity there to force the window repaint. E.g.:

      Timer {
              id: invalidateTimer
              interval: 50
              onTriggered: {
                  let o = root.opacity;
                  root.opacity = o - 0.1;
                  root.opacity = o;
              }
          }
      
          onWidthChanged: invalidateTimer.restart()
          onHeightChanged: invalidateTimer.restart()
      

      Attachments

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

        Activity

          People

            janichol Andy Nichols
            alervd Alexander Dyagilev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes