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

HoverHandler margin not changing cursorShape

    XMLWordPrintable

Details

    • All, macOS
    • b1493678fc295765ce93e565c5194e860e746436 (qt/qtdeclarative/dev) a81c111dd056efbd37b6267871367f3d975a1078 (qt/qtdeclarative/5.15)

    Description

      In the code example, there is a red rectangle with HoverHandler. The margins are set to 20 and cursorShape:Qt.SplitHCursor. The cursor is changing the shape only withing rectangle, I think it should change within margins.

      import QtQuick 2.15
      import QtQuick.Window 2.15
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          Rectangle {
              anchors.centerIn: parent
              width: 50
              height: 50
              color: "red"
              HoverHandler {
                  margin: 20
                  cursorShape: Qt.SplitHCursor
                  // Is hovered working on margin but cursorShape not changing
                  onHoveredChanged: {
                      console.log("Hovered", hovered)
                  }
              }
          }
      }
      

      Attachments

        Issue Links

          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
              vlad.kostiushko Vladyslav Kostiushko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes