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

Clicking even on TextField vs Mousearea

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.8.2, 6.9.0 FF
    • 6.6.1
    • Quick: Controls 2
    • None
    • Android, Windows
    • 842b891ad (dev), 6583dd32c (6.8)

                      MouseArea {
                          onClicked: { console.log("clicked") }
                          onPressAndHold: { console.log("pressAndHold") }
                          onReleased: { console.log("released") }
                      }

      when holding, it only shows "pressAndHold" and on release it shows "released", and when singleclick it shows "clicked" and "released"... this is correct behaviour

       

                      TextField {
                          onPressed: { console.log("pressed") }
                          onPressAndHold: { console.log("pressAndHold") }
                          onReleased: { console.log("released") }
                      }

      when holding, it first shows first "press" and after that it shows "pressAndHold" and on release it dost not show anything (it shall shows "released"), and when singleclick it shows "pressed" and "released"

       

      In best case scenario, I would like the TextField to behave the same way as MouseArea... is this by design?

        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
            shokarta Jiri Zaloudek
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes