Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.3.1
-
e05ba6967edfe288044d6c397fbb541c67eddead
Description
Uncomment the commented out code below and the rectangle won't be drawn.
import QtQuick 2.0 Rectangle { width: 300 height: 300 Canvas { anchors.fill: parent anchors.margins: 10 onPaint: { var ctx = getContext("2d"); ctx.beginPath(); ctx.fillStyle = "red"; ctx.fillRect(0, 0, width, height/*, 0*/); } } }