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

Canvas context putImageData bug

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.5.1
    • Fix Version/s: None
    • Component/s: Quick: SceneGraph
    • Labels:
    • Environment:
      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

            Assignee:
            sletta Gunnar Sletta
            Reporter:
            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