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

Canvas emits paint signal when invisible

    XMLWordPrintable

Details

    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes