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

Two PointHandlers cannot be used if one of them declares a property

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.13.1
    • None
    • Dell XPS 15 9560, Windows 10
    • Windows

    Description

      With example code:

      import QtQuick 2.12
      import QtQuick.Controls 2.5
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
      
          Item {
              id: glassPane
      
              z: 10000
              anchors.fill: parent
      
              PointHandler {
                  id: handler
      
                  readonly property bool thisPropertyMakeItImpossibleToUseTwoPointHandlers: false
      
                  target: Rectangle {
                      parent: glassPane
                      color: "red"
                      visible: handler.active
                      x: handler.point.position.x - width / 2
                      y: handler.point.position.y - height / 2
                      width: 100; height: width; radius: width / 2
                  }
              }
      
              PointHandler {
                  id: handler2
      
                  target: Rectangle {
                      parent: glassPane
                      color: "red"
                      visible: handler2.active
                      x: handler2.point.position.x - width / 2
                      y: handler2.point.position.y - height / 2
                      width: 100; height: width; radius: width / 2
                  }
              }
          }
      }
      

      It is not possible to activate both PointHandlers (Touch with two fingers on the touch screen). If property thisPropertyMakeItImpossibleToUseTwoPointHandlers is not declared, everything works fine.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            permotion88 Karol Polak
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes