Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.3.0 Beta1
-
None
-
dc051f28b865e54d3834824ffea6f2562f0836c1
Description
They are initially white instead of gray with zeros. Apparently the first onPaint call of the canvas elemnts doesn't have an effect. I've added a little hook into onPainted to save the results of the first and second painting as images. Clearly, the first one is blank and the second one has some content.
onPainted: { // You can only do one of those at a time as it will crash on some recursively-locked mutex. //if (++numPaints === 1) { // save("/tmp/timemarks1.png") // console.log("painted", timeMarks.numPaints); if (++numPaints === 2) { save("/tmp/timemarks2.png") console.log("painted", timeMarks.numPaints); } }
Attachments
For Gerrit Dashboard: QTBUG-38297 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
83373,1 | QmlProfiler: Always reset the context before drawing on a canvas | 3.1 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
83375,2 | Make sure the clipPath is retained as state of Context2D | release | qt/qtdeclarative | Status: MERGED | +2 | 0 |