Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.2.0
-
439f31f128e70ecae16544ee7041695c60e0b2d6
Description
Even when the Canvas is invisible, it emits a paint signal, which imho should not be the case.
Example:
import QtQuick 2.0 Canvas { id: canvas visible: false height: 200 NumberAnimation on width { from: 200 to: 300 duration: 500 } Timer { interval: 300 running: true onTriggered: canvas.visible = true } onPaint: { print("Painting; Visible:" + canvas.visible) } }
Attachments
For Gerrit Dashboard: QTBUG-31830 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
73841,4 | Dont call updatePolish if an item is not visible | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
79418,3 | Revert "Fix item polishing" | stable | qt/qtdeclarative | Status: MERGED | +2 | 0 |
79421,2 | Canvas: do not emit paint signal when invisible | stable | qt/qtdeclarative | Status: MERGED | +2 | 0 |
80954,1 | Canvas: do not emit paint when resized but hidden | stable | qt/qtdeclarative | Status: MERGED | +2 | 0 |