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

Window flickers when resizing Canvas element on Mac OS X

    XMLWordPrintable

Details

    • macOS
    • a7f61f73c5f8aebff680014c9ce916eca7126de6

    Description

      Create a Canvas element. On resize, the entire window will flicker (briefly filled with white color). If other elements are present on the scene, they will flicker too.

      This happens only on Mac OS X. Doesn't happen on Windows 7.

      import QtQuick 2.0
      
      Rectangle {
          width: 360
          height: 360
      	Canvas {
      		anchors.fill: parent
      		onPaint: {
      			var ctx = getContext("2d")
      			ctx.fillStyle = "#000033"
      			ctx.fillRect(0, 0, width, height)
      		}
          }
      }
      

      Attached is a test project reproducing the issue. Resize the window by dragging bottom right corner.

      Attachments

        1. CanvasTest.zip
          15 kB
          Andrey Fidrya
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            zmeyc Andrey Fidrya
            Votes:
            4 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes