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

ItemDelegate blocks ScrollView hovered

    XMLWordPrintable

Details

    • 0c7b0a4306 (qt/qtdeclarative/dev) d4c31ec0cd (qt/qtdeclarative/6.2) 66d6c7ec01 (qt/qtdeclarative/6.3) d4c31ec0cd (qt/tqtc-qtdeclarative/6.2)

    Description

      ItemDelegate is blocking the hovered property of a ScrollView.

      import QtQuick
      import QtQuick.Controls
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          ScrollView {
              id: scrollView
              width: 200
              height: 200
              clip: true
      
              background: Rectangle {
                  anchors.fill: parent
                  color: "yellow"
              }
      
              onHoveredChanged: console.log("hovered", scrollView.hovered)
      
              ListView {
                  model: 20
                  delegate: ItemDelegate {
                      text: "Item " + index
                      background: Rectangle {
                          anchors.fill: parent
                          color: "red"
                      }
                  }
              }
          }
      }
      

      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
            henning Henning Gründl
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes