Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.0.0
-
None
-
Mac OS 10.6.8
-
36c9dd5bc52dd7c2bb38ca3329b5001f26f73f0f
Description
See following code:
import QtQuick 2.0 Canvas { id: canvas width: 300 height: 300 //renderTarget: Canvas.Image // if this is set, canvas is blank until we press Return to call requestPaint() focus: true Keys.onReturnPressed: { print('repainting...') canvas.requestPaint() } onPaint: { var c = canvas.getContext('2d') c.fillRect(0, 0, 100, 100) } }
I thought this was related to QTBUG-21590 on Mac but adding an animation to the scene doesn't resolve the issue.