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

Dynamically created PointHandler does not work

    XMLWordPrintable

Details

    • ee2ac69595d3f854f7bf7158e600091f2675fa18 (qt/qtdeclarative/5.12)

    Description

      This code works properly:

      Item {
          id: view
      
          anchors.fill: parent
      
          PointHandler {
              onActiveChanged: console.debug("onActiveChanged:", active)
          }
      }
      

       

      But if PointHandler was created dynamically it does not work:

      Item {
          id: view
      
          anchors.fill: parent
      
          Component.onCompleted: pointHandlerComponent.createObject(view)
      
          Component {
              id: pointHandlerComponent
      
              PointHandler {
                  onActiveChanged: console.debug("onActiveChanged:", active)
              }
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              permotion88 Karol Polak
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes