Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-31830

Canvas emits paint signal when invisible

XMLWordPrintable

    • 439f31f128e70ecae16544ee7041695c60e0b2d6

      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)
          }
      }
      

        For Gerrit Dashboard: QTBUG-31830
        # Subject Branch Project Status CR V

            bomb3rman Fabian Bumberger
            bomb3rman Fabian Bumberger
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes