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

Setting `focus = false` inside `onEditingFinished` of `TextField` should not re-trigger `onEditingFinished`

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.3, 6.0.2
    • None
    • All

    Description

      There is no way for me to de-activate focus on editing finish without running the handler twice:

      TextField {
          onEditingFinished: if (text !== root.value) {
              focus = false // re-triggers onEditingFinished
          }
      }
      

      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
            mmi_puya Puya Daravi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes