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

TapHandler/HoverHandler are not functional inside ListView

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2: Important P2: Important
    • None
    • 6.2.4, 6.3.0
    • None
    • All

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

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

            srutledg Shawn Rutledge
            studiosus Vladimir Belyavsky
            Votes:
            11 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes