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) } } }