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

TapHandler: point.device.deviceType property doesn't exist

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.10
    • None

    Description

      deviceType doesn't exist:

          TapHandler {
              acceptedButtons: Qt.RightButton
              onPressedChanged: {
                  if (pressed)
                      contextMenu.popup()
              }
          }
      
          TapHandler {
              acceptedButtons: Qt.LeftButton
              onLongPressed: {
                  print(point.device.deviceType)
                  if (point.device.deviceType === PointerDevice.TouchScreen)
                      contextMenu.popup()
              }
          }
      

      Creator says:

      /home/mitch/dev/temp/quick2/Main.qml:33: warning: Member "deviceType" not found on type "QPointingDevice" [missing-property]
      

      and printing the property out results in "undefined".

      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
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes