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

TapHandler/HoverHandler are not functional inside ListView

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.2.4, 6.3.0
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      All

      Description

      TapHandler, HoverHandler and probably all other handlers are not functional when created in scope of ListView.

      Example:

      import QtQuick
      import QtQuick.Window
      
      Window {
          width: 640
          height: 480
      
          visible: true
      
          ListView {
              anchors.fill: parent
      
              TapHandler {
                  onTapped: console.log("left clicked")
              }
              TapHandler {
                  acceptedButtons: Qt.RightButton
                  onTapped: console.log("right clicked")
              }
              HoverHandler {
                  cursorShape: Qt.BusyCursor
              }
          }
      }
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              srutledg Shawn Rutledge
              Reporter:
              studiosus Vladimir Belyavsky
              Votes:
              9 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes