Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.0.0
-
None
-
36c9dd5bc52dd7c2bb38ca3329b5001f26f73f0f
Description
If a Canvas item specifies "anchors.fill: parent", it appears to produce a blank scene:
import QtQuick 2.0 Rectangle { width: 300; height: 300 Canvas { id: canvas //anchors.fill: parent // produces a blank scene width: parent.width; height: parent.height // ok onPaint: { var c = canvas.getContext('2d') c.strokeRect(125, 0, 50, 50) } } }