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

HoverHandler margin not changing cursorShape

XMLWordPrintable

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

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

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

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes