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

DialogButtonBox's focus navigation order is wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.2
    • Quick: Controls 2
    • None

      Running the code below, I would expect the focus order when tabbing to be:

      Test > Cancel > Ok

      This matches the left-to-right, top-to-bottom focus navigation seen on e.g. Ubuntu and Windows.

      Instead, the order is:

      Test > Ok > Cancel

      import QtQuick
      import QtQuick.Controls
      
      ApplicationWindow {
          width: 800
          height: 700
          title: "activeFocusItem: " + activeFocusItem
          visible: true
      
          Dialog {
              standardButtons: Dialog.Ok | Dialog.Cancel
              focus: true
              visible: true
      
              Button {
                  text: "Test"
                  focus: true
              }
          }
      }
      

      When this is fixed, the BLACKLIST in the qquickfiledialogimpl auto test should be removed.

        For Gerrit Dashboard: QTBUG-92094
        # Subject Branch Project Status CR V

            mitch_curtis Mitch Curtis
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes