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

Dynamically created PointHandler does not work

XMLWordPrintable

    • ee2ac69595d3f854f7bf7158e600091f2675fa18 (qt/qtdeclarative/5.12)

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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes