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

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

XMLWordPrintable

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

      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.

        For Gerrit Dashboard: QTBUG-116289
        # Subject Branch Project Status CR V

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            studiosus Vladimir Belyavsky
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes