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

Move QQuickControl::focusReason into QQuickItem

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0 Alpha
    • Fix Version/s: None
    • Component/s: Quick: Other
    • Labels:
      None
    • Technical Risk:
      Normal

      Description

      The "focus" concept is part of the Qt Quick framework, but QQuickItem provides no means to inform QML code about the Qt::FocusReason in the focusChanged or activeFocusChanged signals. Adding a parameter to those signals can only be done for Qt 7, as it breaks compatibility to do so earlier (QQuickItem is a public C++ class).

      QQuickControl has a focusReason property that should live directly in QQuickItem, at the cost of storing an additional enum value for all items. That focusReason as a stored property only exists in QQuickControl means that QtQuick's event delivery machinery cannot ensure that the focusReason of the control is in sync with the events delivered, which results in issues like QTBUG-75862.

        Attachments

          Issue Links

          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:
              vhilshei Volker Hilsheimer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes