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

Canvas context putImageData bug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.5.1, 6.8
    • Linux 32 bit
      Qt Quick 2

    Description

      This example code no longer works. It worked in Qt 5.3.2.

      import QtQuick 2.0
      import QtQuick.Window 2.0
      
      Window {
          visible: true
          width: 300
          height: 300
      
          Canvas {
              anchors.fill: parent
      
              onPaint: {
                  var ctx = getContext("2d")
                  ctx.fillStyle = "red"
                  ctx.fillRect(10, 10, 50, 50)
                  var copy = ctx.getImageData(10, 10, 50, 50)
                  ctx.putImageData(copy, 70, 70)
              }
          }
      }
      

      Attachments

        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
            cmessineo Chris Messineo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes