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

TextField onEditingFinished property/signal revision

    XMLWordPrintable

    Details

      Description

      The QtQuick Controls 2 component "TextField" inherits from QtQuick 2.7 "TextInput". The signal "editingFinished" was added to TextInput in Qt 5.2.

      Under certain circumstances, using "onEditingFinished" causes the following runtime error: ".onEditingFinished" is not available due to component versioning.

      I've attached 3 files to demonstrate the problem.
      1) The code in "main.qml" works as expected.
      2) The code in Page1Form.ui.qml and Page1.qml fails with said runtime error.

      The bug was reported to affect Qt 5.7.1 by a user on the forum, see: https://forum.qt.io/topic/77642. I reproduced it with 5.8.0.

        Attachments

        1. main.qml
          0.2 kB
        2. Page1.qml
          0.4 kB
        3. Page1Form.ui.qml
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            Wieland Patrick Wieland
            Votes:
            8 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes