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

Clicking even on TextField vs Mousearea

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.1
    • Quick: Controls 2
    • None
    • Android, Windows

    Description

                      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?

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes