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

Pressing and holding a button, then releasing outside of the button never emits released signal

    XMLWordPrintable

Details

    • Linux/Wayland

    Description

      To reproduce, run attached example, press and hold until the text "held" comes up, then move mouse/finger outside of the button are and release.

      import QtQuick
      import QtQuick.Controls
      
      Window {
          id: window
          width: 640
          height: 480
          visible: true
          Text{
              id: text1
              anchors.horizontalCenter: parent.horizontalCenter
              text: "Unheld"
              font.pixelSize: 30
          }
          Button{
              id: button1
              onPressAndHold: text1.text="held"
              onReleased: text1.text="unheld"
              anchors.centerIn: parent
              width: 100
              height: 100
          }
      }
      

      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
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes