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

Placing a HoverHandler on a Button makes it respond to a right-click.

    XMLWordPrintable

Details

    • macOS, Windows
    • 7211543ec (dev), b0aad6fa4 (6.6)

    Description

      Placing a HoverHandler on a Button makes it respond to a mouse right-click.

      Code sample:

      import QtQuick
      import QtQuick.Window
      import QtQuick.Controls
      
      Window {
          id: wnd
          width: 640
          height: 480
          visible: true
      
          Button {
              anchors.centerIn: parent
              text: 'Push me!'
              onClicked: wnd.color = Qt.rgba(Math.random(1), Math.random(1), Math.random(1), 1)
      
              HoverHandler {
                  cursorShape: Qt.PointingHandCursor
              }
          }
      }
      

      Actual result: the button responds to the mouse right-click.
      Expected result: the button must not respond the mouse right-click.

      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
              studiosus Vladimir Belyavsky
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes